From f889759bd56b07aa3dbb2ae0de0c433ab5ea5ac0 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 17 May 2010 14:36:27 -0400 Subject: [PATCH] make sure $_temp is an array --- mnemo/lib/Mnemo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.11.0