https://bugzilla.wikimedia.org/show_bug.cgi?id=46844
Web browser: ---
Bug ID: 46844
Summary: User groups returned twice
Product: MediaWiki
Version: 1.21-git
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General/Unknown
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l