Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 67b9a80bcfbc7322f8a5d2f2c7f510b8351b4c6a 1 parent b94a85e
TommyO authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  cake/libs/multibyte.php
View
1  cake/libs/multibyte.php
@@ -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];
}
Please sign in to comment.
Something went wrong with that request. Please try again.