Index: trunk/extensions/TemplateInfo/ApiQueryTemplateInfo.php |
— | — | @@ -23,6 +23,9 @@ |
24 | 24 | public function execute() { |
25 | 25 | $params = $this->extractRequestParams(); |
26 | 26 | $titles = $this->getPageSet()->getGoodTitles(); |
| 27 | + if (count($titles) == 0) |
| 28 | + return; |
| 29 | + |
27 | 30 | $this->addTables( 'page_props' ); |
28 | 31 | $this->addFields( array( 'pp_page', 'pp_value' ) ); |
29 | 32 | $this->addWhere( array( |