]> wagnertech.de Git - timetracker.git/blobdiff - admin_team_edit.php
Incrementing version for the previous change
[timetracker.git] / admin_team_edit.php
index c6181a68275216b93c47465cbef55c50254d5668..7f2f5363b718b788b0e0790718a243ddb3f18cca 100644 (file)
@@ -74,11 +74,11 @@ $form->addInput(array('type'=>'submit','name'=>'btn_cancel','value'=>$i18n->getK
 
 if ($request->getMethod() == 'POST') {
   if ($request->getParameter('btn_save')) {
-       // Validate user input.
+    // Validate user input.
     if (!ttValidString($cl_team_name, true)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.team_name'));
     if (!ttValidString($cl_manager_name)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.manager_name'));
     if (!ttValidString($cl_manager_login)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.manager_login'));
-       if (!$auth->isPasswordExternal() && ($cl_password1 || $cl_password2)) {
+    if (!$auth->isPasswordExternal() && ($cl_password1 || $cl_password2)) {
       if (!ttValidString($cl_password1)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.password'));
       if (!ttValidString($cl_password2)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.confirm_password'));
       if ($cl_password1 !== $cl_password2)
@@ -120,4 +120,3 @@ $smarty->assign('onload', 'onLoad="document.teamForm.manager_name.focus()"');
 $smarty->assign('title', $i18n->getKey('title.edit_team'));
 $smarty->assign('content_page_name', 'admin_team_edit.tpl');
 $smarty->display('index.tpl');
-?>
\ No newline at end of file