mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
announce warn return err when has event
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user