Index: trunk/extensions/Validator/Validator.class.php |
— | — | @@ -182,7 +182,7 @@ |
183 | 183 | } |
184 | 184 | |
185 | 185 | if ( array_key_exists( 'type', $this->parameterInfo[$name] ) ) { |
186 | | - // Add type specific criteria. |
| 186 | + // Add type specific criteria. |
187 | 187 | switch(strtolower($this->parameterInfo[$name]['type'])) { |
188 | 188 | case 'integer': |
189 | 189 | $this->parameterInfo[$name]['criteria']['is_integer'] = array(); |
— | — | @@ -218,10 +218,12 @@ |
219 | 219 | $errors = array(); |
220 | 220 | |
221 | 221 | // Split list types into arrays. |
222 | | - switch(strtolower($this->parameterInfo[$name]['type'])) { |
223 | | - case 'list' : case 'list-string' : |
224 | | - $value = explode($this->parameterInfo[$name]['delimiter'], $value); |
225 | | - break; |
| 222 | + if ( array_key_exists( 'type', $this->parameterInfo[$name] ) ) { |
| 223 | + switch(strtolower($this->parameterInfo[$name]['type'])) { |
| 224 | + case 'list' : case 'list-string' : |
| 225 | + $value = explode($this->parameterInfo[$name]['delimiter'], $value); |
| 226 | + break; |
| 227 | + } |
226 | 228 | } |
227 | 229 | |
228 | 230 | // Go through all criteria. |
Index: trunk/extensions/Validator/Validator_Settings.php |
— | — | @@ -18,8 +18,8 @@ |
19 | 19 | } |
20 | 20 | |
21 | 21 | # Integer. The strictness of the parameter validation and resulting error report when using the ValidatorManager class. |
22 | | -# Validator_ERRORS_NONE : Validator will not show any errors, and make the best of the imput it got. |
23 | | -# Validator_ERRORS_WARN : Validator will make the best of the imput it got, but will show a warning that there are errors. |
24 | | -# Validator_ERRORS_SHOW : Validator will make the best of the imput it got, but will show a list of all errors. |
| 22 | +# Validator_ERRORS_NONE : Validator will not show any errors, and make the best of the input it got. |
| 23 | +# Validator_ERRORS_WARN : Validator will make the best of the input it got, but will show a warning that there are errors. |
| 24 | +# Validator_ERRORS_SHOW : Validator will make the best of the input it got, but will show a list of all errors. |
25 | 25 | # Validator_ERRORS_STRICT: Validator will only show regular output when there are no errors, if there are, a list of them will be shown. |
26 | 26 | $egValidatorErrorLevel = Validator_ERRORS_SHOW; |