diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-03 19:12:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-03 19:12:11 +0000 |
commit | 9865652eb45d0cc5563b09d4c11b9a8772313509 (patch) | |
tree | 7b5cad873dc64cca830b9f51ec146d9e6372078f /etc/inc/pfsense-utils.inc | |
parent | 75aaf51c52b368f69f36481af4ec877bb02890a3 (diff) | |
download | pfsense-9865652eb45d0cc5563b09d4c11b9a8772313509.zip pfsense-9865652eb45d0cc5563b09d4c11b9a8772313509.tar.gz |
rework the check code to be more readable since it is falsing
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 13 |
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; } |