mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Configure fix problem 3-dimensional arrays to be handled as 4+ arrays.
This saves a lot of execution time when configure holds many values. Fixes #1028 Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
parent
fc9340213e
commit
b22f2f746b
1 changed files with 1 additions and 0 deletions
|
@ -96,6 +96,7 @@ class Configure extends Object {
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
$_this->{$names[0]}[$names[1]][$names[2]] = $value;
|
$_this->{$names[0]}[$names[1]][$names[2]] = $value;
|
||||||
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
$names = explode('.', $name, 2);
|
$names = explode('.', $name, 2);
|
||||||
if (!isset($_this->{$names[0]})) {
|
if (!isset($_this->{$names[0]})) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue