From 13ad61e7f6ef77a994dfaad2c1481098683b3a38 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sat, 11 Jul 2009 22:00:42 -0400 Subject: [PATCH] don't need & on object creation --- framework/Core/lib/Horde/Registry.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 253fec953..42dc33f3a 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -187,10 +187,10 @@ class Horde_Registry } /* Create the global Perms object. */ - $GLOBALS['perms'] = &Perms::singleton(); + $GLOBALS['perms'] = Perms::singleton(); /* Attach javascript notification listener. */ - $notification = &Horde_Notification::singleton(); + $notification = Horde_Notification::singleton(); $notification->attach('javascript'); } @@ -929,11 +929,11 @@ class Horde_Registry /* If there is no logged in user, return an empty Prefs:: * object with just default preferences. */ if (!Horde_Auth::getAuth()) { - $GLOBALS['prefs'] = &Prefs::factory('session', $app, '', '', null, false); + $GLOBALS['prefs'] = Prefs::factory('session', $app, '', '', null, false); } else { if (!isset($GLOBALS['prefs']) || $GLOBALS['prefs']->getUser() != Horde_Auth::getAuth()) { - $GLOBALS['prefs'] = &Prefs::factory($GLOBALS['conf']['prefs']['driver'], $app, - Horde_Auth::getAuth(), Horde_Auth::getCredential('password')); + $GLOBALS['prefs'] = Prefs::factory($GLOBALS['conf']['prefs']['driver'], $app, + Horde_Auth::getAuth(), Horde_Auth::getCredential('password')); } else { $GLOBALS['prefs']->retrieve($app); } -- 2.11.0