summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-04-20 15:29:47 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-04-23 12:36:12 +0200
commit5608b5077873d1d6b83b2a0c7c45b6a6b243a61c (patch)
treeff24613f73f5fb0c6a947e60d52a0c563fdadaa5 /lib/private
parent94038e0673d38a0ddfcbda2d6ece8d0d145b0956 (diff)
downloadnextcloud-server-5608b5077873d1d6b83b2a0c7c45b6a6b243a61c.tar.gz
nextcloud-server-5608b5077873d1d6b83b2a0c7c45b6a6b243a61c.zip
Fix BackgroundJob tests
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/BackgroundJob/JobList.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php
index d00d219541e..638919d4c39 100644
--- a/lib/private/BackgroundJob/JobList.php
+++ b/lib/private/BackgroundJob/JobList.php
@@ -396,7 +396,8 @@ class JobList implements IJobList {
}
try {
- return $query->executeQuery()->rowCount() > 0;
+ $result = $query->executeQuery();
+ return count($result->fetchAll()) > 0;
} catch (Exception $e) {
return false;
}