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
/
api
/
ApiQueryBase.php
diff --git
a/includes/api/ApiQueryBase.php
b/includes/api/ApiQueryBase.php
index
d9fe50b
..
c92f037
100644
(file)
--- a/
includes/api/ApiQueryBase.php
+++ b/
includes/api/ApiQueryBase.php
@@
-277,7
+277,7
@@
abstract class ApiQueryBase extends ApiBase {
if ( count( $ids ) ) {
$ids = $this->filterIDs( [ [ $table, $field ] ], $ids );
- if (
!count( $ids )
) {
+ if (
$ids === []
) {
// Return nothing, no IDs are valid
$this->where[] = '0 = 1';
} else {