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
/
db
/
DatabaseOracle.php
diff --git
a/includes/db/DatabaseOracle.php
b/includes/db/DatabaseOracle.php
index
628b47b
..
6af6de5
100644
(file)
--- a/
includes/db/DatabaseOracle.php
+++ b/
includes/db/DatabaseOracle.php
@@
-589,7
+589,7
@@
class DatabaseOracle extends Database {
public function upsert( $table, array $rows, array $uniqueIndexes, array $set,
$fname = __METHOD__
) {
- if (
!count( $rows )
) {
+ if (
$rows === []
) {
return true; // nothing to do
}