Commit ed8c5a4f authored by Franco Fichtner's avatar Franco Fichtner

cron: batch uninstall, remove empty config remnants #911

parent af4ce2d0
......@@ -2380,9 +2380,12 @@ function configure_cron()
if ($is_installed == true) {
unset($config['cron']['item'][$x]);
write_config(sprintf(gettext('Removed cron job for %s'), $obsolete));
}
}
if (!count($config['cron']['item'])) {
unset($config['cron']);
}
write_config(gettext('Removed obsolete cron job'));
}
$autocron = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment