diff --git a/cronjobs.php b/cronjobs.php index ed4ea01..5270f8b 100755 --- a/cronjobs.php +++ b/cronjobs.php @@ -543,7 +543,7 @@ public function addNewModulesTasks() $id_module = (int)$cron['id_module']; $module = Module::getInstanceById((int)$cron['id_module']); - if ($module == false) { + if ($module == false && isset($cron['id_cronjob'])) { Db::getInstance()->execute(sprintf("DELETE FROM '%s' WHERE `id_cronjob` = '%s'", $table_name, (int)$cron['id_cronjob'])); break; }