diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -233,7 +233,7 @@ function match( $pattern, $string, $p = array() ) $r = preg_match( it::convertregex( $pattern, $p ), $string, $m, $flags, $p['offset'] ); # no match if( !$r ) - return false; + return $p['all'] ? array() : false; # no capture else if( count( $m ) == 1 ) return $m[0]; |