]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/User.php
Events on user registrations now strictly typed
[quix0rs-gnu-social.git] / classes / User.php
index 7a56e0f12ee217881e57338ac46e3208d9a55c43..cc6e55d1bde3ab936829102e19560b08024c6ed8 100644 (file)
@@ -335,7 +335,7 @@ class User extends Managed_DataObject
 
         $user->created = common_sql_now();
 
-        if (Event::handle('StartUserRegister', array(&$user, &$profile))) {
+        if (Event::handle('StartUserRegister', array($profile))) {
 
             $profile->query('BEGIN');
 
@@ -459,7 +459,7 @@ class User extends Managed_DataObject
                 }
             }
 
-            Event::handle('EndUserRegister', array(&$profile, &$user));
+            Event::handle('EndUserRegister', array($profile));
         }
 
         return $user;