[Tickets #9317] IMP doesn't work for users with 0 folders

bugs at horde.org bugs at horde.org
Tue Oct 19 13:07:35 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9317
------------------------------------------------------------------------------
  Ticket             | 9317
  Created By         | Valentin.Vidic at CARNet.hr
  Summary            | IMP doesn't work for users with 0 folders
  Queue              | IMP
  Version            | 4.3.8
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
+New Attachment     | names.diff
------------------------------------------------------------------------------


Valentin.Vidic at CARNet.hr (2010-10-19 09:07) wrote:

If the user has 0 mailboxes the following error appears when trying to  
open IMP:

Warning: array_keys() [function.array-keys]: The first argument should  
be an array in /srv/webmail.carnet.hr/www/imp/lib/IMAP/Tree.php on  
line 328

Warning: array_intersect() [function.array-intersect]: Argument #2 is  
not an array in /srv/webmail.carnet.hr/www/imp/lib/IMAP/Tree.php on  
line 328

Warning: array_flip() [function.array-flip]: The argument should be an  
array in /srv/webmail.carnet.hr/www/imp/lib/IMAP/Tree.php on line 328

Fatal error: Unsupported operand types in  
/srv/webmail.carnet.hr/www/imp/lib/IMAP/Tree.php on line 333

This seems related to new code added in 1.2.7 and happens because  
$names array never gets initialized in case of 0 mailboxes. Patch is  
attached.






More information about the bugs mailing list