fixed bug with folder listing
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 14 Apr 2000 03:51:43 +0000 (03:51 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 14 Apr 2000 03:51:43 +0000 (03:51 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@425 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index 58519b7..f9819a3 100755 (executable)
    function sqimap_mailbox_list ($imap_stream) {
       global $load_prefs_php, $prefs_php, $config_php, $data_dir, $username;
 
+      $inbox_in_list = false;
+      $inbox_subscribed = false;
+
       if (!isset($load_prefs_php)) include "../src/load_prefs.php";
       else global $folder_prefix;
       if (!function_exists ("ary_sort")) include "../functions/array.php";
       for ($i=0;$i < count($list_ary); $i++) {
          $sorted_list_ary[$i]["name"] = find_mailbox_name($list_ary[$i]);
          $sorted_list_ary[$i]["raw"]  = $list_ary[$i];
-         if ($sorged_list_ary[$i]["name"] == "INBOX")
+         if ($sorted_list_ary[$i]["name"] == "INBOX")
             $inbox_in_list = true;
       }
       if (isset($sorted_list_ary)) {