r56249 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56248‎ | r56249 | r56250 >
Date:21:41, 12 September 2009
Author:happy-melon
Status:ok
Tags:
Comment:
Fix fatal left over from preferences rewrite, that no one noticed because this particular function isn't used *anywhere* in core... :D
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -2483,7 +2483,7 @@
24842484 $user = new User;
24852485 $user->load();
24862486 if ( isset( $params['options'] ) ) {
2487 - $user->mOptions = $params['options'] + $user->mOptions;
 2487+ $user->mOptions = $params['options'] + (array)$user->mOptions;
24882488 unset( $params['options'] );
24892489 }
24902490 $dbw = wfGetDB( DB_MASTER );

Status & tagging log