Serverside Validation
authorAlex Kellner <alexander.kellner@in2code.de>
Sat, 1 Feb 2014 15:30:29 +0000 (16:30 +0100)
committerAlex Kellner <alexander.kellner@in2code.de>
Sat, 1 Feb 2014 15:30:29 +0000 (16:30 +0100)
Classes/Domain/Validator/MandatoryValidator.php

index 5c22dea..06e8e38 100644 (file)
@@ -35,10 +35,10 @@ class Tx_PowermailCond_Domain_Validator_MandatoryValidator extends Tx_Powermail_
 
                                // set error
                                if (is_array($params[$field->getUid()])) {
 
                                // set error
                                if (is_array($params[$field->getUid()])) {
-                                       $empty = 1;
+                                       $empty = TRUE;
                                        foreach ($params[$field->getUid()] as $value) {
                                                if (strlen($value)) {
                                        foreach ($params[$field->getUid()] as $value) {
                                                if (strlen($value)) {
-                                                       $empty = 0;
+                                                       $empty = FALSE;
                                                        break;
                                                }
                                        }
                                                        break;
                                                }
                                        }