aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/lockmanager/FSLockManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/libs/lockmanager/FSLockManager.php')
-rw-r--r--includes/libs/lockmanager/FSLockManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/libs/lockmanager/FSLockManager.php b/includes/libs/lockmanager/FSLockManager.php
index f2624e721a78..019029c4807c 100644
--- a/includes/libs/lockmanager/FSLockManager.php
+++ b/includes/libs/lockmanager/FSLockManager.php
@@ -169,7 +169,7 @@ class FSLockManager extends LockManager {
if ( $this->locksHeld[$path][$type] <= 0 ) {
unset( $this->locksHeld[$path][$type] );
}
- if ( !count( $this->locksHeld[$path] ) ) {
+ if ( $this->locksHeld[$path] === [] ) {
unset( $this->locksHeld[$path] ); // no locks on this path
if ( isset( $this->handles[$path] ) ) {
$handlesToClose[] = $this->handles[$path];