summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-07-26 18:58:41 +0000
committerColin Smith <colin@pfsense.org>2005-07-26 18:58:41 +0000
commitfab143778a7ef940ce0d45f73fc43b89004ffec3 (patch)
tree91473f9f07072a43f2d876e096f98d5ce69e7911 /etc/inc
parente44e4a2bcf1043cf60a58faa9468781d4f3aa4aa (diff)
downloadpfsense-fab143778a7ef940ce0d45f73fc43b89004ffec3.zip
pfsense-fab143778a7ef940ce0d45f73fc43b89004ffec3.tar.gz
Fix close_notice().
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/notices.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc
index ed4afe9..1cf7dbc 100644
--- a/etc/inc/notices.inc
+++ b/etc/inc/notices.inc
@@ -83,6 +83,7 @@ function get_notices($category = "all") {
function close_notice($id) {
global $notice_path;
require_once("util.inc");
+ $ids = array();
if(!$notices = get_notices()) return;
if($id == "all") {
unlink_if_exists($notice_path);
@@ -103,9 +104,9 @@ function close_notice($id) {
break;
}
}
- if(count($queue) != 0) {
+ if(count($notices) != 0) {
$queueout = fopen($notice_path, "w");
- fwrite($queueout, serialize($queue));
+ fwrite($queueout, serialize($notices));
fclose($queueout);
} else {
unlink_if_exists($notice_path);
@@ -170,4 +171,4 @@ function are_notices_pending($category = "all") {
return false;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud