dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1079072
)
API: Fixing a bug that caused inprop=protection to scream when no
author
Roan Kattouw
<catrope@users.mediawiki.org>
Mon, 2 Jul 2007 11:52:14 +0000
(11:52 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Mon, 2 Jul 2007 11:52:14 +0000
(11:52 +0000)
existent titles were specified
includes/api/ApiQueryInfo.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiQueryInfo.php
b/includes/api/ApiQueryInfo.php
index
715c4a2
..
f285c72
100644
(file)
--- a/
includes/api/ApiQueryInfo.php
+++ b/
includes/api/ApiQueryInfo.php
@@
-68,7
+68,7
@@
class ApiQueryInfo extends ApiQueryBase {
$pageLatest = $pageSet->getCustomField('page_latest');
$pageLength = $pageSet->getCustomField('page_len');
- if ($fld_protection) {
+ if ($fld_protection
&& count($titles) > 0
) {
$this->addTables('page_restrictions');
$this->addFields(array('pr_page', 'pr_type', 'pr_level', 'pr_expiry'));
$this->addWhereFld('pr_page', array_keys($titles));