dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Safe replacement of a lot of `!count()` with `=== []`
[lhc/web/wiklou.git]
/
includes
/
search
/
SearchSqlite.php
diff --git
a/includes/search/SearchSqlite.php
b/includes/search/SearchSqlite.php
index
6332ea2
..
f653796
100644
(file)
--- a/
includes/search/SearchSqlite.php
+++ b/
includes/search/SearchSqlite.php
@@
-199,7
+199,7
@@
class SearchSqlite extends SearchDatabase {
if ( is_null( $this->namespaces ) ) {
return ''; # search all
}
- if (
!count( $this->namespaces )
) {
+ if (
$this->namespaces === []
) {
$namespaces = '0';
} else {
$namespaces = $this->db->makeList( $this->namespaces );