[Tickets #6040] mnemo renders php error if $GLOBALS['display_notepads'] is not defined

bugs at horde.org bugs at horde.org
Mon Dec 24 23:45:54 UTC 2007


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

Ticket URL: http://bugs.horde.org/ticket/?id=6040
-----------------------------------------------------------------------
 Ticket             | 6040
 Created By         | m.gabriel at das-netzwerkteam.de
 Summary            | mnemo renders php error if $GLOBALS['display_notepads'] is not defined
 Queue              | Mnemo
 Version            | 2.2-RC1
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


m.gabriel at das-netzwerkteam.de (2007-12-24 18:45) wrote:

i am using kolab-2.1 (debian unstable) and horde-webmail-1.1rc1

the patch below silenced this php5 error if $GLOBALS['display_notepads']
is undefined...

Warning: Invalid argument supplied for foreach() in
/usr/local/share/_horde-versions_/horde-webmail-1.1-rc1-netzwerkteam/mnemo/lib/Mnemo.php
on line 403

diff -r horde-webmail-1.1-rc1/mnemo/lib/Mnemo.php
horde-webmail-1.1-rc1-netzwerkteam/mnemo/lib/Mnemo.php
402,406c402,408
<         foreach ($_temp as $id) {
<             if (isset($_all[$id])) {
<                 $GLOBALS['display_notepads'][] = $id;
<             }
<         }
---
>       if ($_temp) {
>           foreach ($_temp as $id) {
>                 if (isset($_all[$id])) {
>                   $GLOBALS['display_notepads'][] = $id;
>               }
>           }
>       }

mike



More information about the bugs mailing list