replaced "foo" with 'foo' while doing other
[squirrelmail.git] / src / load_prefs.php
index 01452b1ad68a933ef4521d01e060df36559871da..31389dfc4f6f59187ac97506b99f83c545fd8e60 100644 (file)
@@ -19,6 +19,8 @@
       include("../functions/plugin.php");
       
    $load_prefs_php = true;
+   if (!isset($username))
+       $username = '';
    checkForPrefs($data_dir, $username);
 
    $chosen_theme = getPref($data_dir, $username, "chosen_theme");
       $index_order[$i] = $order;
       $order = getPref($data_dir, $username, "order".($i+1));
    }
-   if (!$index_order) {
+   if (!isset($index_order)) {
       $index_order[1] = 1;
       $index_order[2] = 2;
       $index_order[3] = 3;