forked from science-ation/science-ation
Fix display messages undefined warning
This commit is contained in:
parent
5ed439b42a
commit
81299494c5
@ -375,7 +375,7 @@ function happy($str,$type="normal")
|
||||
function display_messages()
|
||||
{
|
||||
/* Dump any messages in the queue */
|
||||
if(is_array($_SESSION['messages'])) {
|
||||
if(is_array(get_value_from_array($_SESSION, 'messages'))) {
|
||||
foreach($_SESSION['messages'] as $m) echo $m;
|
||||
}
|
||||
$_SESSION['messages'] = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user