mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 23:49:55 +00:00
fixes #5261, return by reference in class registry
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7465 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
9cb854b48e
commit
7d9af97bd0
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ class ClassRegistry {
|
||||||
* @param string $class
|
* @param string $class
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
function _duplicate($alias, $class) {
|
function &_duplicate($alias, $class) {
|
||||||
$_this =& ClassRegistry::getInstance();
|
$_this =& ClassRegistry::getInstance();
|
||||||
$duplicate = false;
|
$duplicate = false;
|
||||||
if ($_this->isKeySet($alias)) {
|
if ($_this->isKeySet($alias)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue