Index: branches/apiedit/phase3/includes/api/ApiQueryInfo.php |
— | — | @@ -72,7 +72,7 @@ |
73 | 73 | $pageLatest = $pageSet->getCustomField('page_latest'); |
74 | 74 | $pageLength = $pageSet->getCustomField('page_len'); |
75 | 75 | |
76 | | - if ($fld_protection) { |
| 76 | + if ($fld_protection && count($titles) > 0) { |
77 | 77 | $this->addTables('page_restrictions'); |
78 | 78 | $this->addFields(array('pr_page', 'pr_type', 'pr_level', 'pr_expiry')); |
79 | 79 | $this->addWhereFld('pr_page', array_keys($titles)); |
Property changes on: branches/apiedit/phase3 |
___________________________________________________________________ |
Modified: svnmerge-integrated |
80 | 80 | - /trunk/phase3:1-23634 |
81 | 81 | + /trunk/phase3:1-23636 |