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:
gwoo 2008-08-14 06:09:31 +00:00
parent 9cb854b48e
commit 7d9af97bd0

View file

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