Przeglądaj źródła

extra Check for DIR value

stekkel 23 lat temu
rodzic
commit
8da658e37a
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/webmail.php

+ 2 - 1
src/webmail.php

@@ -49,7 +49,8 @@ echo "<html><head>\n" .
 $left_size = getPref($data_dir, $username, 'left_size');
 $location_of_bar = getPref($data_dir, $username, 'location_of_bar');
 
-if (strtolower($languages[$squirrelmail_language]['DIR']) == 'rtl') {
+if (isset($languages[$squirrelmail_language]['DIR']) &&
+    strtolower($languages[$squirrelmail_language]['DIR']) == 'rtl') {
     $temp_location_of_bar = 'right';
 } else {
     $temp_location_of_bar = 'left';