$pagenext = $page + 1; // Do we click on purge search criteria ? if (GETPOST("button_removefilter")) { $search_label = ''; $status = -1; } $filter = array(); if (!empty($search_label)) { $filter['t.label'] = $search_label; } // Delete jobs if ($action == 'confirm_delete' && $confirm == "yes" && $user->rights->cron->delete) { //Delete cron task $object = new Cronjob($db); $object->id = $id; $result = $object->delete($user); if ($result < 0) { setEventMessage($object->error, 'errors'); } } // Execute jobs if ($action == 'confirm_execute' && $confirm == "yes" && $user->rights->cron->execute) { //Execute jobs $object = new Cronjob($db); $job = $object->fetch($id); $result = $object->run_jobs($user->login); if ($result < 0) { setEventMessage($object->error, 'errors'); } else { $res = $object->reprogram_jobs($user->login); if ($res > 0) {