summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-10-09 08:48:26 -0400
committerjim-p <jimp@pfsense.org>2013-10-09 08:48:26 -0400
commit506ff948be6275d56a4338c4fb3fc44a61320eb3 (patch)
treea52a0e1012ea9cb3395cc889ed2b7e020dd9ad83 /etc
parent2b4f2f23e0a8623fed161517ced41f72562ced0b (diff)
downloadpfsense-506ff948be6275d56a4338c4fb3fc44a61320eb3.zip
pfsense-506ff948be6275d56a4338c4fb3fc44a61320eb3.tar.gz
Remove this check, the value can be 0 here if the target is the first item in the array.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 5de1bec..e0f32dd 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -2214,7 +2214,7 @@ function install_cron_job($command, $active=false, $minute="0", $hour="*", $mont
write_config(sprintf(gettext("Updated cron job for %s"), $command));
}
} else {
- if(($is_installed == true) && ($x > 0)) {
+ if($is_installed == true) {
unset($config['cron']['item'][$x]);
write_config(sprintf(gettext("Removed cron job for %s"), $command));
}
OpenPOWER on IntegriCloud