fix when session messages are empty
This commit is contained in:
@@ -268,16 +268,18 @@ function purgeSessionMessages()
|
|||||||
function dumpmsgbuffer()
|
function dumpmsgbuffer()
|
||||||
{
|
{
|
||||||
$GLOBALS['session']->dumpmsgbuffer();
|
$GLOBALS['session']->dumpmsgbuffer();
|
||||||
|
if (is_array($GLOBALS['session']->msg) and count($GLOBALS['session']->msg) > 0)
|
||||||
echo html_frame_start("","300","",5);
|
|
||||||
foreach ($GLOBALS['session']->msg as $msg)
|
|
||||||
{
|
{
|
||||||
if ($msg['color'] == "red")
|
echo html_frame_start("","300","",5);
|
||||||
$msg['color'] = "{$msg['color']};text-decoration:blink";
|
foreach ($GLOBALS['session']->msg as $msg)
|
||||||
echo "<div align=\"center\" style=\"font-color:{$msg['color']};\"> {$msg['msg']} </div>";
|
{
|
||||||
|
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(" ");
|
||||||
|
echo "<br>\n";
|
||||||
}
|
}
|
||||||
echo html_frame_end(" ");
|
|
||||||
echo "<br>\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user