diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-08-12 12:01:05 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-08-12 12:02:59 +0000 |
commit | 70562c2cf3b293d71571001afd9728c9467bc785 (patch) | |
tree | fa1fa610a47643f4bc408282de1cc32661e439fb /etc | |
parent | f204df7d7746b23cf38126a891552eef5a457176 (diff) | |
download | pfsense-70562c2cf3b293d71571001afd9728c9467bc785.zip pfsense-70562c2cf3b293d71571001afd9728c9467bc785.tar.gz |
Catch up with the new System->Misc option added for schedules.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index c290b5a..b225f71 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1487,7 +1487,8 @@ function filter_generate_user_rule($rule) foreach ($config['schedules']['schedule'] as $sched) { if ($sched['name'] == $rule['sched']) { if (!filter_get_time_based_rule_status($sched)) { - mwexec("/sbin/pfctl -y {$sched['schedlabel']}"); + if ($config['system']['schedule_states']) + mwexec("/sbin/pfctl -y {$sched['schedlabel']}"); return "# schedule finished - {$rule['descr']}"; } else if ($g['debug']) log_error("[TDR DEBUG] status true -- rule type '$type'"); |