Fixed bug #9659: TCEmain wrongly tests required input-type fields
authorOliver Hader <oliver.hader@typo3.org>
Fri, 31 Oct 2008 11:12:22 +0000 (11:12 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 31 Oct 2008 11:12:22 +0000 (11:12 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4393 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index 820a5b1..66f44a7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2008-10-31  Oliver Hader  <oliver@typo3.org>
 
        * Fixed bug #9571: Additional condition required to check SSL status in class.t3lib_div.php (thanks to Christian Kuhn)
+       * Fixed bug #9659: TCEmain wrongly tests required input-type fields (thanks to Francois Suter)
 
 2008-10-31  Benjamin Mack  <benni@typo3.org>
 
index d0faa86..2d7c1dd 100755 (executable)
@@ -2044,7 +2044,9 @@ class t3lib_TCEmain       {
                                        $value = $GLOBALS['LANG']->csConvObj->conv_case($GLOBALS['LANG']->charSet, $value, 'toLower');
                                break;
                                case 'required':
-                                       if (!$value)    {$set=0;}
+                                       if (!isset($value) || $value === '') {
+                                               $set = false;
+                                       }
                                break;
                                case 'is_in':
                                        $c=strlen($value);