fix when session messages are empty

This commit is contained in:
Jeremy Newman
2008-02-08 13:18:29 -06:00
parent 7666f6d0da
commit e3ea460e9c

View File

@@ -268,16 +268,18 @@ function purgeSessionMessages()
function dumpmsgbuffer()
{
$GLOBALS['session']->dumpmsgbuffer();
echo html_frame_start("","300","",5);
foreach ($GLOBALS['session']->msg as $msg)
if (is_array($GLOBALS['session']->msg) and count($GLOBALS['session']->msg) > 0)
{
if ($msg['color'] == "red")
$msg['color'] = "{$msg['color']};text-decoration:blink";
echo "<div align=\"center\" style=\"font-color:{$msg['color']};\"> {$msg['msg']} </div>";
echo html_frame_start("","300","",5);
foreach ($GLOBALS['session']->msg as $msg)
{
if ($msg['color'] == "red")
$msg['color'] = "{$msg['color']};text-decoration:blink";
echo "<div align=\"center\" style=\"font-color:{$msg['color']};\"> {$msg['msg']} </div>";
}
echo html_frame_end("&nbsp;");
echo "<br>\n";
}
echo html_frame_end("&nbsp;");
echo "<br>\n";
}
/**