Index: trunk/extensions/ResearchTools/api/ApiQueryResearchToolsSurveys.php |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | __METHOD__ |
42 | 42 | ); |
43 | 43 | $survey['questions'] = array(); |
44 | | - while ( $row = $dbr->fetchObject( $questionRows ) ) { |
| 44 | + foreach ( $questionRows as $row ) { |
45 | 45 | $survey['questions'][] = $row; |
46 | 46 | } |
47 | 47 | $result->addValue( array( 'query', $this->getModuleName() ), null, $survey ); |