Index: trunk/extensions/Validator/Validator.class.php |
— | — | @@ -120,11 +120,11 @@ |
121 | 121 | */ |
122 | 122 | public function parseAndSetParams( array $rawParams, array $defaultParams = array() ) { |
123 | 123 | $parameters = array(); |
124 | | - //var_dump($rawParams); exit; |
| 124 | + |
125 | 125 | foreach( $rawParams as $arg ) { |
126 | | - if ( is_array( $arg ) ) { |
127 | | - |
128 | | - } else { |
| 126 | + // Only take into account strings. If the value is not a string, |
| 127 | + // it is not a raw parameter, and can not be parsed correctly in all cases. |
| 128 | + if ( is_string( $arg ) ) { |
129 | 129 | $parts = explode( '=', $arg ); |
130 | 130 | if ( count( $parts ) == 1 ) { |
131 | 131 | if ( count( $defaultParams ) > 0 ) { |