X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2FLocalRepo.php;h=bb65b0ad896446372b2801ce98124e5939787a3a;hb=9314453c93e9daa502a706063b66d003adcbee0b;hp=b3eae900ee6c00550ecdc02d05f6cbbadc57ae99;hpb=f03d31af05dbe6acaad00bc76ff4aa02aee2f77f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/LocalRepo.php b/includes/filerepo/LocalRepo.php index b3eae900ee..bb65b0ad89 100644 --- a/includes/filerepo/LocalRepo.php +++ b/includes/filerepo/LocalRepo.php @@ -405,7 +405,7 @@ class LocalRepo extends FileRepo { * @return array[] An Array of arrays or iterators of file objects and the hash as key */ function findBySha1s( array $hashes ) { - if ( !count( $hashes ) ) { + if ( $hashes === [] ) { return []; // empty parameter }