Sorry, a bug slipped into the CVS.
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 26 Sep 2001 11:47:27 +0000 (11:47 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 26 Sep 2001 11:47:27 +0000 (11:47 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1527 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index f244876..a0d29cd 100755 (executable)
@@ -11,9 +11,6 @@
       return;
    define ('imap_mailbox_php', true);
 
-   require_once('../src/load_prefs.php');
-   require_once('../functions/array.php');
-
    /******************************************************************************
     **  Expunges a mailbox 
     ******************************************************************************/
       $inbox_in_list = false;
       $inbox_subscribed = false;
 
-
+      require_once('../src/load_prefs.php');
+      require_once('../functions/array.php');
 
       $dm = sqimap_get_delimiter ($imap_stream);
 
    function sqimap_mailbox_list_all ($imap_stream) {
       global $list_special_folders_first, $folder_prefix;
       
+      if (!function_exists ("ary_sort"))
+         include_once('../functions/array.php');
+      
       $dm = sqimap_get_delimiter ($imap_stream);
 
       fputs ($imap_stream, "a001 LIST \"$folder_prefix\" *\r\n");