]> wagnertech.de Git - timetracker.git/blobdiff - admin_options.php
Initial implementation of a mobile timer page
[timetracker.git] / admin_options.php
index ac90921b879e31fac4f07df728485efb31863584..42c10bbed478e2a8aef2271ad6a5eb74518ee010 100644 (file)
@@ -48,9 +48,9 @@ $form->addInput(array('type'=>'submit','name'=>'btn_submit','value'=>$i18n->getK
 
 if ($request->getMethod() == 'POST') {
   if ($cl_password1 || $cl_password2) {
-       // Validate user input.
-       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'));
+    // Validate user input.
+    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)
       $errors->add($i18n->getKey('error.not_equal'), $i18n->getKey('label.password'), $i18n->getKey('label.confirm_password'));
   }
@@ -68,4 +68,3 @@ $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.options'));
 $smarty->assign('content_page_name', 'admin_options.tpl');
 $smarty->display('index.tpl');
-?>
\ No newline at end of file