X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchOracle.php;h=6b2b4038dca7ef8d4e7eebfd43ea66ee424be832;hb=6497541c9c089966ce7d3b0e0abd6b68192d30d8;hp=9cd245a8603cc2318510eadddd840c7d3ceaeb79;hpb=9171317645de4d31c61c570a9e4fa765e09ecc4d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchOracle.php b/includes/search/SearchOracle.php index 9cd245a860..6b2b4038dc 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 ); @@ -267,7 +267,7 @@ class SearchOracle extends SearchDatabase { [] ); } - public static function legalSearchChars( $type = self::CHARS_ALL ) { + public function legalSearchChars( $type = self::CHARS_ALL ) { $searchChars = parent::legalSearchChars( $type ); if ( $type === self::CHARS_ALL ) { $searchChars = "\"" . $searchChars;