summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-19 02:21:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-19 02:21:10 +0000
commitf7522c2b8a18e81d94e811c4bd19168d5a780ba3 (patch)
treeb3945d3ac88c44ae34e98d5fa106eddf627396fe
parentee7ff1f0078664d21406d1685e6ad0c55c958d85 (diff)
downloadpfsense-f7522c2b8a18e81d94e811c4bd19168d5a780ba3.zip
pfsense-f7522c2b8a18e81d94e811c4bd19168d5a780ba3.tar.gz
Correctly check if sysctl item is array
-rw-r--r--etc/inc/system.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index e0f4b84..530bc72 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -35,7 +35,7 @@ require_once("functions.inc");
function activate_sysctls() {
global $config, $g;
- if (is_array($config['sysctl']['item']))
+ if (is_array($config['sysctl']))
foreach ($config['sysctl']['item'] as $tunable)
mwexec("sysctl " . $tunable['tunable'] . "=\""
. $tunable['value'] . "\"");
OpenPOWER on IntegriCloud