Skip to content

Commit

Permalink
Fix simple problem with substr where warning was being thrown
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7992 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
TommyO authored and TommyO committed Jan 14, 2009
1 parent b94a85e commit 67b9a80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cake/libs/multibyte.php
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ function substr($string, $start, $length = null) {
}
$string = array_values($string);

$value = array();
for ($i = 0; $i < $length; $i++) {
$value[] = $string[$i];
}
Expand Down

0 comments on commit 67b9a80

Please sign in to comment.