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:
nate 2007-02-08 22:14:36 +00:00
parent b5dc025a61
commit 9468feec18

View file

@ -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) {