diff --git a/src/etc/inc/notices.inc b/src/etc/inc/notices.inc index 46bf40eba..22d08058e 100644 --- a/src/etc/inc/notices.inc +++ b/src/etc/inc/notices.inc @@ -56,8 +56,6 @@ function get_notices() function close_notice($id) { - $ids = array(); - if (file_exists('/tmp/notices')) { if ($id == 'all') { @unlink('/tmp/notices'); diff --git a/src/etc/inc/rrd.inc b/src/etc/inc/rrd.inc index 9d08eff18..de01eed91 100644 --- a/src/etc/inc/rrd.inc +++ b/src/etc/inc/rrd.inc @@ -30,7 +30,7 @@ function rrd_create($rrdcreatecmd) { $rrdcreateoutput = array(); $rrdcreatereturn = 0; - $_gb = exec("$rrdcreatecmd 2>&1", $rrdcreateoutput, $rrdcreatereturn); + exec("$rrdcreatecmd 2>&1", $rrdcreateoutput, $rrdcreatereturn); if ($rrdcreatereturn != 0) { $rrdcreateoutput = implode(" ", $rrdcreateoutput); log_error(sprintf('RRD create failed exited with %s, the error is: %s', $rrdcreatereturn, $rrdcreateoutput)); @@ -119,7 +119,6 @@ function rrd_configure($verbose = false) $rrdupdatesh .= "do\n"; $rrdupdatesh .= ""; - $i = 0; $ifdescrs = get_configured_interface_with_descr(); /* IPsec counters */ $ifdescrs['ipsec'] = "IPsec"; @@ -296,7 +295,6 @@ function rrd_configure($verbose = false) $rrdupdatesh .= "$rrdtool update $rrddbpath$ifname$cellular N:\"\$GSTATS\""; } } - $i++; /* System only statistics */ $ifname = "system"; diff --git a/src/www/firewall_scrub_edit.php b/src/www/firewall_scrub_edit.php index d0ed46d58..2147a5b17 100644 --- a/src/www/firewall_scrub_edit.php +++ b/src/www/firewall_scrub_edit.php @@ -39,7 +39,6 @@ function filter_tos_values() 'lowdelay' => gettext('lowdelay'), 'critical' => gettext('critical'), 'inetcontrol' => gettext('inetcontrol'), - 'lowdelay' => gettext('lowdelay'), 'netcontrol' => gettext('netcontrol'), 'throughput' => gettext('throughput'), 'reliability' => gettext('reliability'),