Fix display messages undefined warning

This commit is contained in:
Armanveer Gill 2025-01-28 14:34:23 -05:00
parent 5ed439b42a
commit 81299494c5

View File

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