summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-03 19:12:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-03 19:12:11 +0000
commit9865652eb45d0cc5563b09d4c11b9a8772313509 (patch)
tree7b5cad873dc64cca830b9f51ec146d9e6372078f /etc
parent75aaf51c52b368f69f36481af4ec877bb02890a3 (diff)
downloadpfsense-9865652eb45d0cc5563b09d4c11b9a8772313509.zip
pfsense-9865652eb45d0cc5563b09d4c11b9a8772313509.tar.gz
rework the check code to be more readable since it is falsing
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc13
1 files changed, 9 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index d0db00b..a10ae2f 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -570,15 +570,20 @@ function get_time_based_rule_status($schedule) {
else
log_error("[TDR DEBUG] hourstatus has been set to false");
- if($monthstatus and $daystatus and $positionstatus and $hourstatus) {
- $should_add_rule = true;
- log_error("[TDR DEBUG] setting should add rule to true");
- }
+ if($monthstatus == true)
+ if($daystatus == true)
+ if($positionstatus == true)
+ if($hourstatus == true) {
+ $should_add_rule = true;
+ log_error("[TDR DEBUG] setting should add rule to true");
+ }
}
+
if($should_add_rule == true)
log_error("[TDR DEBUG] should_add_rule == true");
else
log_error("[TDR DEBUG] should_add_rule == true");
+
return $should_add_rule;
}
OpenPOWER on IntegriCloud