X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryLangBacklinks.php;h=3572475a530839329b37d7257e0e4f907170b604;hb=a99171228d167224e376cf584739daf624ebaf71;hp=7145d4da8004166c7aed649fd41e75285710d9a4;hpb=1360a2884ac2ce44b1a81df9fef96b72853c845e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index 7145d4da80..3572475a53 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -67,7 +67,7 @@ class ApiQueryLangBacklinks 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( "ll_lang $op $prefix OR " . "(ll_lang = $prefix AND " . @@ -130,7 +130,7 @@ class ApiQueryLangBacklinks 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 );