mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
b94a85e938
commit
67b9a80bcf
1 changed files with 1 additions and 0 deletions
|
@ -966,6 +966,7 @@ class Multibyte extends Object {
|
|||
}
|
||||
$string = array_values($string);
|
||||
|
||||
$value = array();
|
||||
for ($i = 0; $i < $length; $i++) {
|
||||
$value[] = $string[$i];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue