mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-18 05:32:29 +08:00
Revert "Merge pull request #3445 from Alex-Code/getValue"
This reverts commita5846fa269, reversing changes made to2a6e064aca.
This commit is contained in:
@@ -181,7 +181,7 @@ class BaseArrayHelper
|
|||||||
$key = substr($key, $pos + 1);
|
$key = substr($key, $pos + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_object($array) && isset($array->$key)) {
|
if (is_object($array)) {
|
||||||
return $array->$key;
|
return $array->$key;
|
||||||
} elseif (is_array($array)) {
|
} elseif (is_array($array)) {
|
||||||
return array_key_exists($key, $array) ? $array[$key] : $default;
|
return array_key_exists($key, $array) ? $array[$key] : $default;
|
||||||
|
|||||||
Reference in New Issue
Block a user