Fix simple problem with substr where warning was being thrown

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7992 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
TommyO 2009-01-14 23:05:51 +00:00
parent b94a85e938
commit 67b9a80bcf

View file

@ -966,6 +966,7 @@ class Multibyte extends Object {
} }
$string = array_values($string); $string = array_values($string);
$value = array();
for ($i = 0; $i < $length; $i++) { for ($i = 0; $i < $length; $i++) {
$value[] = $string[$i]; $value[] = $string[$i];
} }