fixing warning

This commit is contained in:
real_nowhereman 2009-09-12 14:42:46 +00:00
parent 3d23a3434d
commit c4211ddc2f

View File

@ -200,7 +200,9 @@
); );
$arr =& $smarty->get_template_vars('draft_list'); $arr =& $smarty->get_template_vars('draft_list');
list($id, $subject)=each($arr); $id = $subject = null;
if ($arr)
list($id, $subject)=each($arr);
if ($id){ if ($id){
$smarty->assign('subject', $subject); $smarty->assign('subject', $subject);