Index: trunk/phase3/includes/api/ApiQueryInfo.php |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | $pageLatest = $pageSet->getCustomField('page_latest'); |
70 | 70 | $pageLength = $pageSet->getCustomField('page_len'); |
71 | 71 | |
72 | | - if ($fld_protection) { |
| 72 | + if ($fld_protection && count($titles) > 0) { |
73 | 73 | $this->addTables('page_restrictions'); |
74 | 74 | $this->addFields(array('pr_page', 'pr_type', 'pr_level', 'pr_expiry')); |
75 | 75 | $this->addWhereFld('pr_page', array_keys($titles)); |