X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/0e3c4d629800de449c5a1bb9da780993e5dc5277..4df61856250643178176215235ffe106cb3cb4ea:/admin_team_add.php diff --git a/admin_team_add.php b/admin_team_add.php index 258f6caf..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', '$'); @@ -93,7 +93,7 @@ if ($request->getMethod() == 'POST') { } else $errors->add($i18n->getKey('error.user_exists')); } -} +} // POST $smarty->assign('auth_external', $auth->isPasswordExternal()); $smarty->assign('forms', array($form->getName()=>$form->toArray()));