From 7d9af97bd0de4e84bc37d03d0ea45fa6b89283a0 Mon Sep 17 00:00:00 2001 From: gwoo Date: Thu, 14 Aug 2008 06:09:31 +0000 Subject: [PATCH] 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 --- cake/libs/class_registry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/class_registry.php b/cake/libs/class_registry.php index 61d328dfb..e3733df9e 100644 --- a/cake/libs/class_registry.php +++ b/cake/libs/class_registry.php @@ -277,7 +277,7 @@ class ClassRegistry { * @param string $class * @return boolean */ - function _duplicate($alias, $class) { + function &_duplicate($alias, $class) { $_this =& ClassRegistry::getInstance(); $duplicate = false; if ($_this->isKeySet($alias)) {