mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
c46c6de561
commit
c8da214170
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue