Index: trunk/extensions/SemanticMaps/includes/forminputs/SM_FormInput.php |
— | — | @@ -110,8 +110,15 @@ |
111 | 111 | |
112 | 112 | $validator = new Validator( 'form', false ); // TODO |
113 | 113 | |
114 | | - $validator->setParameters( $mapProperties, $parameterInfo ); |
| 114 | + $parameters = array(); |
| 115 | + foreach ( $mapProperties as $param ) { |
| 116 | + if ( !is_array( $param ) && !is_object( $param ) ) { |
| 117 | + $parameters[] = $param; |
| 118 | + } |
| 119 | + } |
115 | 120 | |
| 121 | + $validator->setParameters( $parameters, $parameterInfo ); |
| 122 | + |
116 | 123 | $validator->validateParameters(); |
117 | 124 | |
118 | 125 | $fatalError = $validator->hasFatalError(); |