make sure $_temp is an array
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 17 May 2010 18:36:27 +0000 (14:36 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 17 May 2010 18:36:27 +0000 (14:36 -0400)
mnemo/lib/Mnemo.php

index 94bbc68..ce7f478 100644 (file)
@@ -422,7 +422,8 @@ class Mnemo {
         }
 
         // Make sure all notepads exist now, to save on checking later.
-        $_temp = $GLOBALS['display_notepads'];
+        $_temp = ($GLOBALS['display_notepads']) ? $GLOBALS['display_notepads'] : array();
+
         $_all = Mnemo::listNotepads();
         $GLOBALS['display_notepads'] = array();
         foreach ($_temp as $id) {