summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index f865858..2fe2682 100644
--- a/it.class
+++ b/it.class
@@ -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];