aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Lock
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Lock')
-rw-r--r--lib/private/Lock/MemcacheLockingProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Lock/MemcacheLockingProvider.php b/lib/private/Lock/MemcacheLockingProvider.php
index 6b01f0aafc6..439894e901f 100644
--- a/lib/private/Lock/MemcacheLockingProvider.php
+++ b/lib/private/Lock/MemcacheLockingProvider.php
@@ -61,7 +61,7 @@ class MemcacheLockingProvider extends AbstractLockingProvider {
public function isLocked(string $path, int $type): bool {
$lockValue = $this->memcache->get($path);
if ($type === self::LOCK_SHARED) {
- return $lockValue > 0;
+ return is_int($lockValue) && $lockValue > 0;
} elseif ($type === self::LOCK_EXCLUSIVE) {
return $lockValue === 'exclusive';
} else {