Index: trunk/extensions/SocialProfile/UserProfile/SpecialPopulateExistingUsersProfiles.php |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | |
45 | 45 | $count = 0; // To avoid an annoying PHP notice |
46 | 46 | |
47 | | - while( $row = $dbr->fetchObject($res) ){ |
| 47 | + while( $row = $dbw->fetchObject($res) ){ |
48 | 48 | $user_name_title = Title::newFromDBkey( $row->page_title ); |
49 | 49 | $user_name = $user_name_title->getText(); |
50 | 50 | $user_id = User::idFromName( $user_name ); |