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
This commit is contained in:
nate 2007-02-17 16:54:36 +00:00
parent c46c6de561
commit c8da214170

View file

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