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 ) : ( $a == $b ); |
| 289 | + $cond = $re ? preg_match( $b, $a ) : ( empty( $b ) ? ( $a == $b ) : true ); |
290 | 290 | break; |
291 | 291 | |
292 | 292 | case '!=': |
293 | | - $cond = $re ? !preg_match( $b, $a ) : ( $a != $b ); |
| 293 | + $cond = $re ? !preg_match( $b, $a ) : ( empty( $b ) ? ( $a != $b ) : true ); |
294 | 294 | break; |
295 | 295 | |
296 | 296 | default: |