]> wagnertech.de Git - timetracker.git/blobdiff - cf_dropdown_option_add.php
Cosmetic formatting improvements
[timetracker.git] / cf_dropdown_option_add.php
index d13c33bef2331752809b59ee9eafce523a063e70..5dd2c5742d6327a600c157ad98b86e4e1e006176 100644 (file)
@@ -55,13 +55,12 @@ if ($request->getMethod() == 'POST') {
   if (!ttValidString($cl_option_name)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.thing_name'));
          
   if ($errors->isEmpty()) {
-       $res = CustomFields::insertOption($cl_field_id, $cl_option_name);
+    $res = CustomFields::insertOption($cl_field_id, $cl_option_name);
     if ($res) {
       header("Location: cf_dropdown_options.php?field_id=$cl_field_id");
       exit();
-    } else {
+    } else
       $errors->add($i18n->getKey('error.db'));
-    }
   }
 }
 
@@ -70,4 +69,3 @@ $smarty->assign('onload', 'onLoad="document.optionAddForm.name.focus()"');
 $smarty->assign('title', $i18n->getKey('title.cf_add_dropdown_option'));
 $smarty->assign('content_page_name', 'cf_dropdown_option_add.tpl');
 $smarty->display('index.tpl');
-?>
\ No newline at end of file