X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiQueryIWBacklinks.php;h=b0152236ef7e8340f7b9e1c82fbb449147c66f8a;hp=90aed6ecbb5c5a1098ca6bef782c83f86be3fa66;hb=9283760f340c6971d748fb574a35453fa7928807;hpb=f673cfd18a0fa8eb1c9ef0a34e2c1eb9c124a5e9 diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 90aed6ecbb..b0152236ef 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -42,7 +42,7 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { } /** - * @param ApiPageSet $resultPageSet + * @param ApiPageSet|null $resultPageSet * @return void */ public function run( $resultPageSet = null ) { @@ -67,7 +67,7 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { $op = $params['dir'] == 'descending' ? '<' : '>'; $prefix = $db->addQuotes( $cont[0] ); $title = $db->addQuotes( $cont[1] ); - $from = intval( $cont[2] ); + $from = (int)$cont[2]; $this->addWhere( "iwl_prefix $op $prefix OR " . "(iwl_prefix = $prefix AND " . @@ -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 );