From c8da214170b65e77dc4c0588bb5f249e4580ced0 Mon Sep 17 00:00:00 2001 From: nate Date: Sat, 17 Feb 2007 16:54:36 +0000 Subject: [PATCH] Fixing instance references in Set method calls git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4529 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/set.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cake/libs/set.php b/cake/libs/set.php index d663df009..cee513413 100644 --- a/cake/libs/set.php +++ b/cake/libs/set.php @@ -57,7 +57,7 @@ class Set extends Object { * * @access public */ - function get() { + function &get() { return $this->value; } /** @@ -256,7 +256,7 @@ class Set extends Object { if (empty($data) && is_a($this, 'Set')) { $data = $path; $path = $list; - $list = $this->get(); + $list =& $this->get(); } if (!is_array($path)) { $path = explode('.', $path); @@ -289,7 +289,7 @@ class Set extends Object { function remove($list, $path = null) { if (empty($path) && is_a($this, 'Set')) { $path = $list; - $list = $this->get(); + $list =& $this->get(); } if (!is_array($path)) { $path = explode('.', $path);