[Tickets #1115] NEW: index array notice (error) if delete last mail
in .trash folder
bugs at bugs.horde.org
bugs at bugs.horde.org
Sat Jan 8 06:24:20 PST 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=1115
-----------------------------------------------------------------------
Ticket | 1115
Created By | elitescripts2000 at yahoo.com
Summary | index array notice (error) if delete last mail in .trash folder
Queue | IMP
Version | RELENG_3
State | Unconfirmed
Priority | 3. High
Type | Bug
Owners |
-----------------------------------------------------------------------
elitescripts2000 at yahoo.com (2005-01-08 06:24) wrote:
In the file horde/imp/message.php
line 271
-----------
$array_index = $indices[$index];
If you are currently reading the LAST (only) email from .trash folder and
DELETE the mail it will report an index error ( level NOTICE ) which then
prevents PHP from setting headers to load on the Browser. ( cant set headers
if output is written )
So what I did was do this to line 271:
$array_index = @$indices[$index];
Added the @ which supresses the notice error and so the headers can be used
to just continue on with the use of IMP.
More fansy code rewrite is needed Im sure instead of using my simple fix.
More information about the bugs
mailing list