Index: trunk/extensions/SocialProfile/UserStats/UserStatsClass.php |
— | — | @@ -685,7 +685,7 @@ |
686 | 686 | |
687 | 687 | $list = array(); |
688 | 688 | $res = $dbr->query( $sql, __METHOD__ ); |
689 | | - while ( $row = $dbr->fetchObject( $res ) ) { |
| 689 | + foreach ( $res as $row ) { |
690 | 690 | $list[] = array( |
691 | 691 | 'user_id' => $row->stats_user_id, |
692 | 692 | 'user_name' => $row->stats_user_name, |
— | — | @@ -718,7 +718,7 @@ |
719 | 719 | |
720 | 720 | $list = array(); |
721 | 721 | $res = $dbr->query( $sql, __METHOD__ ); |
722 | | - while ( $row = $dbr->fetchObject( $res ) ) { |
| 722 | + foreach ( $res as $row ) { |
723 | 723 | $list[] = array( |
724 | 724 | 'user_id' => $row->up_user_id, |
725 | 725 | 'user_name' => $row->up_user_name, |
— | — | @@ -755,7 +755,7 @@ |
756 | 756 | |
757 | 757 | $list = array(); |
758 | 758 | $res = $dbr->query( $sql, __METHOD__ ); |
759 | | - while ( $row = $dbr->fetchObject( $res ) ) { |
| 759 | + foreach ( $res as $row ) { |
760 | 760 | $list[] = array( |
761 | 761 | 'user_id' => $row->stats_user_id, |
762 | 762 | 'user_name' => $row->stats_user_name, |