X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/437925de08860894e489db00c1d2d967c18267a2..1fad211ab12fc66117094e33425f8414fccd2cfa:/notification_edit.php diff --git a/notification_edit.php b/notification_edit.php index f4d1d1d0..6e5bd936 100644 --- a/notification_edit.php +++ b/notification_edit.php @@ -72,7 +72,7 @@ if ($request->getMethod() == 'POST') { if (!ttValidCronSpec($cl_cron_spec)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.cron_schedule')); if (!ttValidEmail($cl_email)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.email')); - if ($errors->isEmpty()) { + if ($errors->no()) { // Calculate next execution time. $next = tdCron::getNextOccurrence($cl_cron_spec, mktime());