diff options
Diffstat (limited to 'ui/sysmap.php')
-rw-r--r-- | ui/sysmap.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ui/sysmap.php b/ui/sysmap.php index 891ff1480fa..e5bfdc7f8fd 100644 --- a/ui/sysmap.php +++ b/ui/sysmap.php @@ -116,7 +116,7 @@ if (isset($_REQUEST['favobj'])) { DBend(false); $msg = [$e->getMessage()]; - foreach (clear_messages() as $errMsg) { + foreach (get_and_clear_messages() as $errMsg) { $msg[] = $errMsg['type'].': '.$errMsg['message']; } @@ -126,7 +126,8 @@ if (isset($_REQUEST['favobj'])) { } @ob_flush(); - exit; + session_write_close(); + exit(); } elseif (getRequest('action') === 'expand') { $values = []; @@ -165,14 +166,14 @@ if (isset($_REQUEST['favobj'])) { ksort($return); echo json_encode($return); - exit; + session_write_close(); + exit(); } } } if ($page['type'] != PAGE_TYPE_HTML) { require_once dirname(__FILE__).'/include/page_footer.php'; - exit; } /* |