From 643c030bcd15fdd83841a2bbc3eeba6e9875f3ab Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Thu, 16 Jun 2011 23:36:41 +0000 Subject: [PATCH] =?utf8?q?follow=20up=20r84134=20=E2=80=94=20removing=20pa?= =?utf8?q?ssing=20$this=20by=20reference?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- includes/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/User.php b/includes/User.php index 4459184c94..d21693a901 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2233,7 +2233,7 @@ class User { * @param $group String Name of the group to add */ function addGroup( $group ) { - if( wfRunHooks( 'UserAddGroup', array( &$this, &$group ) ) ) { + if( wfRunHooks( 'UserAddGroup', array( $this, &$group ) ) ) { $dbw = wfGetDB( DB_MASTER ); if( $this->getId() ) { $dbw->insert( 'user_groups', @@ -2259,7 +2259,7 @@ class User { */ function removeGroup( $group ) { $this->load(); - if( wfRunHooks( 'UserRemoveGroup', array( &$this, &$group ) ) ) { + if( wfRunHooks( 'UserRemoveGroup', array( $this, &$group ) ) ) { $dbw = wfGetDB( DB_MASTER ); $dbw->delete( 'user_groups', array( -- 2.20.1