X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=notification_edit.php;h=6e5bd9360ce41fa5be91dfb243959c420d458fee;hb=1fad211ab12fc66117094e33425f8414fccd2cfa;hp=f4d1d1d0ee3af507d9c1fd5c7590cf70975fcab8;hpb=d26c95718cac0a2994ab4e9633b59f420a0816b4;p=timetracker.git 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());