Switched to using shorter ActionErrors functions
[timetracker.git] / notification_add.php
index 8a0cddf..fd8d0c8 100644 (file)
@@ -68,7 +68,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());