mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
If the notices array is empty, unlink our queue file. This fixes are_notices_pending().
This commit is contained in:
parent
c0c2f4225c
commit
cebc42e6fb
@ -103,9 +103,13 @@ function close_notice($id) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
$queueout = fopen($notice_path, "w");
|
||||
fwrite($queueout, serialize($queue));
|
||||
fclose($queueout);
|
||||
if(count($queue) != 0) {
|
||||
$queueout = fopen($notice_path, "w");
|
||||
fwrite($queueout, serialize($queue));
|
||||
fclose($queueout);
|
||||
} else {
|
||||
unlink_if_exists($notice_path);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user