X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchOracle.php;h=0cbb41c4711b17e4f6d05506b0239312f3ff170d;hb=70d9fbb0bfacaf837b7e8efb3770245d646ab522;hp=9cd245a8603cc2318510eadddd840c7d3ceaeb79;hpb=be74c82f9a19f9fc5a0c771ec627b9aa9746089e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchOracle.php b/includes/search/SearchOracle.php index 9cd245a860..0cbb41c471 100644 --- a/includes/search/SearchOracle.php +++ b/includes/search/SearchOracle.php @@ -98,7 +98,7 @@ class SearchOracle extends SearchDatabase { if ( is_null( $this->namespaces ) ) { return ''; } - if ( !count( $this->namespaces ) ) { + if ( $this->namespaces === [] ) { $namespaces = '0'; } else { $namespaces = $this->db->makeList( $this->namespaces );