X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryBacklinksprop.php;h=fb90e25c383b09d5c460fa57bfe9a2a922e98662;hb=a2c8c2969420a0f150c03f76e3a0bf9028fcda43;hp=1db15f87e8c2bea13c97f768cca3815782b75928;hpb=04d149b816c23b9a35db9e2258ee43eb04edd2d6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryBacklinksprop.php b/includes/api/ApiQueryBacklinksprop.php index 1db15f87e8..fb90e25c38 100644 --- a/includes/api/ApiQueryBacklinksprop.php +++ b/includes/api/ApiQueryBacklinksprop.php @@ -2,8 +2,6 @@ /** * API module to handle links table back-queries * - * Created on Aug 19, 2014 - * * Copyright © 2014 Wikimedia Foundation and contributors * * This program is free software; you can redistribute it and/or modify @@ -161,7 +159,9 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase { } } else { $this->addWhereFld( "{$p}_from_namespace", $params['namespace'] ); - if ( !empty( $settings['from_namespace'] ) && count( $params['namespace'] ) > 1 ) { + if ( !empty( $settings['from_namespace'] ) + && $params['namespace'] !== null && count( $params['namespace'] ) > 1 + ) { $sortby["{$p}_from_namespace"] = 'int'; } }