Revert "Merge pull request #3445 from Alex-Code/getValue"

This reverts commit a5846fa269, reversing
changes made to 2a6e064aca.
This commit is contained in:
Alexander Makarov
2014-06-01 00:14:44 +04:00
parent a5846fa269
commit 44273f0790

View File

@@ -181,7 +181,7 @@ class BaseArrayHelper
$key = substr($key, $pos + 1);
}
if (is_object($array) && isset($array->$key)) {
if (is_object($array)) {
return $array->$key;
} elseif (is_array($array)) {
return array_key_exists($key, $array) ? $array[$key] : $default;