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 d1e1400..0866102 100644
--- a/it.class
+++ b/it.class
@@ -222,7 +222,7 @@ function match($pattern, $string, $p = array())
setlocale(LC_CTYPE, $oldlocale);
if (!$r) # no match
- $result = $p['all'] ? array() : false;
+ $result = $p['all'] ? array() : null;
else if (count($m) == 1) # no capture
$result = $m[0];
else if (count($m) == 2) # one capture