X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryBacklinksprop.php;h=ef02d095c8d4cc823ebd071acf2c413a9ee7b89b;hb=72fa7b9dfc98878da3644b96a79cec6a03fb16d1;hp=1db15f87e8c2bea13c97f768cca3815782b75928;hpb=4fad94948359ab67e312355534977138754c123b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryBacklinksprop.php b/includes/api/ApiQueryBacklinksprop.php index 1db15f87e8..ef02d095c8 100644 --- a/includes/api/ApiQueryBacklinksprop.php +++ b/includes/api/ApiQueryBacklinksprop.php @@ -161,7 +161,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'; } }