]> wagnertech.de Git - timetracker.git/blobdiff - cf_custom_field_add.php
Removed unused function
[timetracker.git] / cf_custom_field_add.php
index 056ce531abe9910b92d2e7cad0a3478fc09838e6..a5053054191a57e7cdf5e83f0e6f4d0608fb3f11 100644 (file)
@@ -57,7 +57,7 @@ if ($request->getMethod() == 'POST') {
   // Validate user input.
   if (!ttValidString($cl_field_name)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.thing_name'));
 
-  if ($errors->isEmpty()) {
+  if ($errors->no()) {
     $res = CustomFields::insertField($cl_field_name, $cl_field_type, $cl_required);
     if ($res) {
       header('Location: cf_custom_fields.php');