From: Michael J. Rubinsky Date: Mon, 17 May 2010 18:36:27 +0000 (-0400) Subject: make sure $_temp is an array X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f889759bd56b07aa3dbb2ae0de0c433ab5ea5ac0;p=horde.git make sure $_temp is an array --- diff --git a/mnemo/lib/Mnemo.php b/mnemo/lib/Mnemo.php index 94bbc6808..ce7f4783f 100644 --- a/mnemo/lib/Mnemo.php +++ b/mnemo/lib/Mnemo.php @@ -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) {