Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -285,11 +285,11 @@ |
286 | 286 | $re = preg_match( "|^[/#%]|", $b ); |
287 | 287 | switch ( $operator ) { |
288 | 288 | case '=': |
289 | | - $cond = $re ? preg_match( $b, $a ) : ( empty( $b ) ? ( $a == $b ) : true ); |
| 289 | + $cond = $re ? preg_match( $b, $a ) : ( empty( $b ) ? true : ( $a == $b ) ); |
290 | 290 | break; |
291 | 291 | |
292 | 292 | case '!=': |
293 | | - $cond = $re ? !preg_match( $b, $a ) : ( empty( $b ) ? ( $a != $b ) : true ); |
| 293 | + $cond = $re ? !preg_match( $b, $a ) : ( empty( $b ) ? true : ( $a != $b ) ); |
294 | 294 | break; |
295 | 295 | |
296 | 296 | default: |