Last modified: 2013-07-25 07:06:49 UTC
I have a very simple test case: $user->setEmail( $email ); $user->setPassword( $password ); $status = $user->addToDatabase(); if ( !$status->isOK() ) { throw new MWException( $status->getWikiText() ); } // Need to have an id first $user->addGroup( 'translate-sandboxed' ); var_dump( $user->getGroups() ); die(); This prints: array(2) { [0]=> string(19) "translate-sandboxed" [1]=> string(19) "translate-sandboxed" } It should return it only once.
https://gerrit.wikimedia.org/r/57284
The patch is broken. Does anyone have an idea why I sometimes get dupes but not always?
I've updated the patch.
Patch has been merged.