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
/
libs
/
rdbms
/
database
/
DatabaseMysqlBase.php
diff --git
a/includes/libs/rdbms/database/DatabaseMysqlBase.php
b/includes/libs/rdbms/database/DatabaseMysqlBase.php
index
3fcbcf9
..
186c89f
100644
(file)
--- a/
includes/libs/rdbms/database/DatabaseMysqlBase.php
+++ b/
includes/libs/rdbms/database/DatabaseMysqlBase.php
@@
-1337,7
+1337,7
@@
abstract class DatabaseMysqlBase extends Database {
public function upsert( $table, array $rows, array $uniqueIndexes,
array $set, $fname = __METHOD__
) {
- if (
!count( $rows )
) {
+ if (
$rows === []
) {
return true; // nothing to do
}