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);