Return the page_id in list=iwbacklinks as an int rather than string
[lhc/web/wiklou.git] / includes / api / ApiQueryIWBacklinks.php
index 90aed6e..83801c7 100644 (file)
@@ -131,7 +131,7 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase {
                        if ( !is_null( $resultPageSet ) ) {
                                $pages[] = Title::newFromRow( $row );
                        } else {
-                               $entry = [ 'pageid' => $row->page_id ];
+                               $entry = [ 'pageid' => (int)$row->page_id ];
 
                                $title = Title::makeTitle( $row->page_namespace, $row->page_title );
                                ApiQueryBase::addTitleInfo( $entry, $title );