]> wagnertech.de Git - timetracker.git/blobdiff - admin_options.php
Introduced shorter functions for Errors class
[timetracker.git] / admin_options.php
index 2a44e3e2e2be486fbe6e289632a79ff6956432e5..ac7183776ab98df0c9c15b111c58c655630dd725 100644 (file)
@@ -55,7 +55,7 @@ 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();