Merge pull request #367 from alecmolloy/patch-1
fix `undefined array key "lan"` error
This commit is contained in:
commit
4082d6a15d
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<?php
|
<?php
|
||||||
$html_attributes = "";
|
$html_attributes = "";
|
||||||
if ($_GET['lan'] == "fa") {
|
if (!empty($_GET['lan']) && $_GET['lan'] == "fa") {
|
||||||
$html_attributes = 'dir="rtl" lang="fa"';
|
$html_attributes = 'dir="rtl" lang="fa"';
|
||||||
}
|
}
|
||||||
echo '
|
echo '
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue