--- lib/IMP.php.orig	Wed Jan 26 10:23:02 2005
+++ lib/IMP.php	Mon Feb 14 21:14:11 2005
@@ -582,7 +582,7 @@
 
         /* Add the list of mailboxes to the lists. */
         $showmbox = false;
-        if (is_null($filter[0])) {
+        if (count($filter) && is_null($filter[0])) {
             $showmbox = true;
             array_shift($filter);
         }
