Index: trunk/phase3/includes/api/ApiQueryPageProps.php |
— | — | @@ -47,6 +47,10 @@ |
48 | 48 | |
49 | 49 | # Only operate on existing pages |
50 | 50 | $pages = $this->getPageSet()->getGoodTitles(); |
| 51 | + if ( !count( $pages ) ) { |
| 52 | + # Nothing to do |
| 53 | + return; |
| 54 | + } |
51 | 55 | |
52 | 56 | $this->addTables( 'page_props' ); |
53 | 57 | $this->addFields( array( 'pp_page', 'pp_propname', 'pp_value' ) ); |