X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/e457063f931911a1e9fc0917767dc07f92d24f02..62da0ed23af9ae74faf8d103bc3ce025c56b673e:/admin_options.php diff --git a/admin_options.php b/admin_options.php index 42c10bbe..ac718377 100644 --- a/admin_options.php +++ b/admin_options.php @@ -55,14 +55,14 @@ if ($request->getMethod() == 'POST') { $errors->add($i18n->getKey('error.not_equal'), $i18n->getKey('label.password'), $i18n->getKey('label.confirm_password')); } - if ($errors->isEmpty() && $cl_password1) { + if ($errors->no() && $cl_password1) { if (ttUserHelper::setPassword($user->id, $cl_password1)) { header('Location: admin_teams.php'); exit(); } else $errors->add($i18n->getKey('error.db')); } -} // post +} // POST $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('title', $i18n->getKey('title.options'));