summaryrefslogtreecommitdiff
path: root/includes/api/ApiQueryProtectedTitles.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/api/ApiQueryProtectedTitles.php')
-rw-r--r--includes/api/ApiQueryProtectedTitles.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/api/ApiQueryProtectedTitles.php b/includes/api/ApiQueryProtectedTitles.php
index fb65e5e2..5ef2f70b 100644
--- a/includes/api/ApiQueryProtectedTitles.php
+++ b/includes/api/ApiQueryProtectedTitles.php
@@ -123,7 +123,7 @@ class ApiQueryProtectedTitles extends ApiQueryGeneratorBase {
}
if ( isset( $prop['userid'] ) || /*B/C*/isset( $prop['user'] ) ) {
- $vals['userid'] = $row->pt_user;
+ $vals['userid'] = (int)$row->pt_user;
}
if ( isset( $prop['comment'] ) ) {
@@ -216,7 +216,8 @@ class ApiQueryProtectedTitles extends ApiQueryGeneratorBase {
'parsedcomment',
'expiry',
'level'
- )
+ ),
+ ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
),
'continue' => array(
ApiBase::PARAM_HELP_MSG => 'api-help-param-continue',