* @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',
*/
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(