diff options
author | dvserg <dv_serg@mail.ru> | 2011-01-17 08:14:24 +0300 |
---|---|---|
committer | dvserg <dv_serg@mail.ru> | 2011-01-17 08:14:24 +0300 |
commit | b451c6fd144c59e6f236e267d61d45daaac5970c (patch) | |
tree | 8ee87eb83bb1bc1d71f753e3a90eaeeebf310431 /config/lightsquid | |
parent | a2b83e91543ce5f67f74b0fd5c8159bec6d38d0f (diff) | |
download | pfsense-packages-b451c6fd144c59e6f236e267d61d45daaac5970c.tar.gz pfsense-packages-b451c6fd144c59e6f236e267d61d45daaac5970c.tar.bz2 pfsense-packages-b451c6fd144c59e6f236e267d61d45daaac5970c.zip |
LS Cron bugfix
Diffstat (limited to 'config/lightsquid')
-rw-r--r-- | config/lightsquid/lightsquid.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/lightsquid/lightsquid.inc b/config/lightsquid/lightsquid.inc index 2d3ef16f..ef8c1f3a 100644 --- a/config/lightsquid/lightsquid.inc +++ b/config/lightsquid/lightsquid.inc @@ -324,7 +324,7 @@ function ls_setup_cron($task_name, $options, $task_key, $on_off) { unset($config['cron']['item'][$key]); } else # unset crontask by cmd - if (strpos($item['command'], $options[6]) !== false) { + if ($options[6] && (strpos($item['command'], $options[6]) !== false) { unset($config['cron']['item'][$key]); } } @@ -350,7 +350,7 @@ function ls_setup_cron($task_name, $options, $task_key, $on_off) { $config['cron']['item'][] = $cron_item; update_log("ls_setup_cron: add cron task '{$task_name}'='{$cron_item['command']}'"); - } + } } else // log update_log("ls_setup_cron: input prm 'task_key' not defined"); |