Merge pull request #367 from alecmolloy/patch-1

fix `undefined array key "lan"` error
pull/352/head^2
Patricio Gonzalez Vivo 2 years ago committed by GitHub
commit 4082d6a15d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save