diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-03-29 19:48:48 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-03-29 19:48:48 +0000 |
commit | 1e19ee66ce65a179478c451a0fd13a1ce9e5ee83 (patch) | |
tree | c0ec595883af3736ca5217747dd67ab1912e5b3c /etc | |
parent | 83e442099b9a327096be457f836b63bbd9ab9a23 (diff) | |
download | pfsense-1e19ee66ce65a179478c451a0fd13a1ce9e5ee83.zip pfsense-1e19ee66ce65a179478c451a0fd13a1ce9e5ee83.tar.gz |
Check that cron items exist before foreach()
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index d6d6a50..c14c6e7 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -57,6 +57,8 @@ function get_tmp_file() { function tdr_install_cron($should_install) { global $config; $is_installed = false; + if(!$config['cron']['item']) + return; foreach($config['cron']['item'] as $item) { $x=0; if(strstr($item['command'], "filter_configure_sync")) { |