X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/437925de08860894e489db00c1d2d967c18267a2..1fad211ab12fc66117094e33425f8414fccd2cfa:/user_add.php diff --git a/user_add.php b/user_add.php index e6340de9..92861d90 100644 --- a/user_add.php +++ b/user_add.php @@ -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,