From 014999758e2f4efa433a9c4e71d0551e0b5b318a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 4 Mar 2009 18:15:56 +0000 Subject: Updated Kohana to r4033 --- kohana/core/utf8/strcspn.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kohana/core/utf8/strcspn.php') diff --git a/kohana/core/utf8/strcspn.php b/kohana/core/utf8/strcspn.php index abd93d57..20d3e802 100644 --- a/kohana/core/utf8/strcspn.php +++ b/kohana/core/utf8/strcspn.php @@ -16,7 +16,7 @@ function _strcspn($str, $mask, $offset = NULL, $length = NULL) if (utf8::is_ascii($str) AND utf8::is_ascii($mask)) return ($offset === NULL) ? strcspn($str, $mask) : (($length === NULL) ? strcspn($str, $mask, $offset) : strcspn($str, $mask, $offset, $length)); - if ($start !== NULL OR $length !== NULL) + if ($str !== NULL OR $length !== NULL) { $str = utf8::substr($str, $offset, $length); } -- cgit v1.2.3