mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Adding object support to Set::extract()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4481 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b5dc025a61
commit
9468feec18
1 changed files with 3 additions and 0 deletions
|
@ -178,6 +178,9 @@ class Set extends Object {
|
|||
$path = $data;
|
||||
$data = $this->get();
|
||||
}
|
||||
if (is_object($data)) {
|
||||
$data = get_object_vars($data);
|
||||
}
|
||||
|
||||
if (!is_array($path)) {
|
||||
if (strpos($path, '/') !== 0 && strpos($path, './') === false) {
|
||||
|
|
Loading…
Add table
Reference in a new issue