diff options
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |