X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/62da0ed23af9ae74faf8d103bc3ce025c56b673e..437925de08860894e489db00c1d2d967c18267a2:/admin_team_add.php diff --git a/admin_team_add.php b/admin_team_add.php index 3ce0e662..5ece36dc 100644 --- a/admin_team_add.php +++ b/admin_team_add.php @@ -71,7 +71,7 @@ if ($request->getMethod() == 'POST') { } if (!ttValidEmail($cl_manager_email, true)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.email')); - if ($errors->isEmpty()) { + if ($errors->no()) { if (!ttUserHelper::getUserByLogin($cl_manager_login)) { // Create a new team. if (!defined('CURRENCY_DEFAULT')) define('CURRENCY_DEFAULT', '$');