From c4211ddc2f1414b3f594f061dc9922a885de3ece Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Sat, 12 Sep 2009 14:42:46 +0000 Subject: [PATCH] fixing warning --- fp-includes/core/core.draft.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fp-includes/core/core.draft.php b/fp-includes/core/core.draft.php index 7d8a467..1192552 100644 --- a/fp-includes/core/core.draft.php +++ b/fp-includes/core/core.draft.php @@ -200,7 +200,9 @@ ); $arr =& $smarty->get_template_vars('draft_list'); - list($id, $subject)=each($arr); + $id = $subject = null; + if ($arr) + list($id, $subject)=each($arr); if ($id){ $smarty->assign('subject', $subject);