From 9468feec18224825c3789d721d23ce4afa4cb9e5 Mon Sep 17 00:00:00 2001 From: nate Date: Thu, 8 Feb 2007 22:14:36 +0000 Subject: [PATCH] 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 --- cake/libs/set.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cake/libs/set.php b/cake/libs/set.php index caefd43f9..2abf8bfc7 100644 --- a/cake/libs/set.php +++ b/cake/libs/set.php @@ -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) {