Index: trunk/extensions/Contest/api/ApiContestQuery.php |
— | — | @@ -51,8 +51,11 @@ |
52 | 52 | */ |
53 | 53 | public function execute() { |
54 | 54 | $params = $this->getParams(); |
55 | | - $results = $this->getResults( $params, $this->getConditions( $params ) ); |
56 | | - $this->addResults( $params, $results ); |
| 55 | + |
| 56 | + if ( count( $params['props'] ) > 0 ) { |
| 57 | + $results = $this->getResults( $params, $this->getConditions( $params ) ); |
| 58 | + $this->addResults( $params, $results ); |
| 59 | + } |
57 | 60 | } |
58 | 61 | |
59 | 62 | /** |