Revision 506ff948
Added by Jim Pingle almost 12 years ago
etc/inc/services.inc | ||
---|---|---|
2214 | 2214 |
write_config(sprintf(gettext("Updated cron job for %s"), $command)); |
2215 | 2215 |
} |
2216 | 2216 |
} else { |
2217 |
if(($is_installed == true) && ($x > 0)) {
|
|
2217 |
if($is_installed == true) {
|
|
2218 | 2218 |
unset($config['cron']['item'][$x]); |
2219 | 2219 |
write_config(sprintf(gettext("Removed cron job for %s"), $command)); |
2220 | 2220 |
} |
Also available in: Unified diff
Remove this check, the value can be 0 here if the target is the first item in the array.