<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>mnemo renders php error if $GLOBALS['display_notepads'] is not defined</title>
  <pubDate>Sun, 07 Sep 2008 20:38:04 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/6040</link>
  <atom:link rel="self" type="application/rss+xml" title="mnemo renders php error if $GLOBALS['display_notepads'] is not defined" href="http://bugs.horde.org/ticket/6040/rss" />
  <description>mnemo renders php error if $GLOBALS['display_notepads'] is not defined</description>

  
  
  <item>
   <title>i am using kolab-2.1 (debian unstable) and horde-webmail-1.1</title>
   <description>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
&lt;         foreach ($_temp as $id) {
&lt;             if (isset($_all[$id])) {
&lt;                 $GLOBALS['display_notepads'][] = $id;
&lt;             }
&lt;         }
---
&gt;       if ($_temp) {
&gt;           foreach ($_temp as $id) {
&gt;                 if (isset($_all[$id])) {
&gt;                   $GLOBALS['display_notepads'][] = $id;
&gt;               }
&gt;           }
&gt;       }

mike</description>
   <pubDate>Mon, 24 Dec 2007 18:45:54 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6040#t40278</link>
  </item>
  <item>
   <title>$GLOBALS['display_notepads'] would only not be an array if t</title>
   <description>$GLOBALS['display_notepads'] would only not be an array if the display_notepads preference was corrupted, or if you didn't have an up to date prefs.php config file. Do you know what the cause was in your case?</description>
   <pubDate>Mon, 24 Dec 2007 22:46:44 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6040#t40304</link>
  </item>
  <item>
   <title>ohhh... you are right. there was an error in my mnemo config</title>
   <description>ohhh... you are right. there was an error in my mnemo config dir. by some reason mnemo had a kronolith prefs.php file.

i guess, then this can be considered as a &quot;rejected ticket&quot;.

greets,
mike</description>
   <pubDate>Tue, 25 Dec 2007 06:52:04 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6040#t40308</link>
  </item>
  

 </channel>
</rss>
