Merge pull request #367 from alecmolloy/patch-1

fix `undefined array key "lan"` error
This commit is contained in:
Patricio Gonzalez Vivo 2022-08-29 10:42:09 -04:00 committed by GitHub
commit 4082d6a15d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<?php
$html_attributes = "";
if ($_GET['lan'] == "fa") {
if (!empty($_GET['lan']) && $_GET['lan'] == "fa") {
$html_attributes = 'dir="rtl" lang="fa"';
}
echo '