aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/BackgroundJob/DummyJobList.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/BackgroundJob/DummyJobList.php')
-rw-r--r--tests/lib/BackgroundJob/DummyJobList.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/BackgroundJob/DummyJobList.php b/tests/lib/BackgroundJob/DummyJobList.php
index 42b69cfbe41..8574f462ca7 100644
--- a/tests/lib/BackgroundJob/DummyJobList.php
+++ b/tests/lib/BackgroundJob/DummyJobList.php
@@ -141,7 +141,7 @@ class DummyJobList extends \OC\BackgroundJob\JobList {
}
public function hasReservedJob(?string $className = null): bool {
- return $this->reserved[$className ?? ''];
+ return isset($this->reserved[$className ?? '']) && $this->reserved[$className ?? ''];
}
public function setHasReservedJob(?string $className, bool $hasReserved): void {