diff --git a/include/functions_announce.php b/include/functions_announce.php index dd63e5b1..1aa18c72 100644 --- a/include/functions_announce.php +++ b/include/functions_announce.php @@ -81,6 +81,10 @@ function err($msg) */ function warn($msg, int $interval = 7200) { + if (!empty($GLOBALS['event'])) { + //force return err, otherwise event will be lost in the next announce request + return err($msg); + } $d = get_resp_dict_from_global(); $d['warning message'] = $msg; if ($interval > 0) {