]> git.andy128k.dev Git - ipf.git/commitdiff
fix default value 0.6
authorAndrey Kutejko <andy128k@gmail.com>
Wed, 13 Mar 2019 20:52:01 +0000 (21:52 +0100)
committerAndrey Kutejko <andy128k@gmail.com>
Wed, 13 Mar 2019 20:52:01 +0000 (21:52 +0100)
ipf/form/field/choice.php

index 368caf069e617dd43131dd90512d2eee2bcb8912..10457e10fe35a2ec132e37570b4caf8ea663cb9f 100644 (file)
@@ -9,7 +9,7 @@ class IPF_Form_Field_Choice extends IPF_Form_Field
     {
         parent::clean($value);
         if (in_array($value, $this->empty_values)) {
-            return '';
+            return null;
         }
         if (!$this->validValue($value))
             throw new IPF_Exception_Form(__('Invalid choice'));