]> wagnertech.de Git - timetracker.git/blobdiff - user_add.php
Switched to using shorter ActionErrors functions
[timetracker.git] / user_add.php
index e6340de904e8f261ffbbb8a8a0fec1f16ce3f95a..92861d90f563f7ea3c5d72fe0b54dbc185c6da41 100644 (file)
@@ -144,7 +144,7 @@ if ($request->getMethod() == 'POST') {
   if (!ttValidEmail($cl_email, true)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.email'));
   if (!ttValidFloat($cl_rate, true)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('form.users.default_rate'));
 
-  if ($errors->isEmpty()) {
+  if ($errors->no()) {
     if (!ttUserHelper::getUserByLogin($cl_login)) {
       $fields = array(
         'name' => $cl_name,