Fix unknown variable message when the user has never logged in before (tested with...
authorindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 8 Feb 2006 20:04:34 +0000 (20:04 +0000)
committerindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 8 Feb 2006 20:04:34 +0000 (20:04 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10669 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index a73108f0c96443df2390318fb7ba65df9c776101..5f81aebe0cc2e875fa40500a359237d69906dbb7 100755 (executable)
@@ -818,6 +818,7 @@ function sqimap_get_mailboxes($imap_stream,$force=false,$show_only_subscribed=tr
         sqgetGlobalVar($sub_cache_name,$lsub_cache,SQ_SESSION);
     }
 
+    $lsub_assoc_ary=array();
     if (!empty($lsub_cache)) {
         $lsub_assoc_ary=$lsub_cache;
     } else {
@@ -1303,4 +1304,4 @@ function sqimap_mailbox_is_noinferiors($oImapStream,$sImapFolder,&$oBoxes) {
     return false;
 }
 
-?>
\ No newline at end of file
+?>