From 1e19ee66ce65a179478c451a0fd13a1ce9e5ee83 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 29 Mar 2007 19:48:48 +0000 Subject: Check that cron items exist before foreach() --- etc/inc/pfsense-utils.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc/inc/pfsense-utils.inc') 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")) { -- cgit v1.1