mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
JobList#hasReservedJobs: Close cursor
so Joas doesn't die Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
a0c722ad69
commit
5a7f023bfc
1 changed files with 3 additions and 1 deletions
|
|
@ -397,7 +397,9 @@ class JobList implements IJobList {
|
|||
|
||||
try {
|
||||
$result = $query->executeQuery();
|
||||
return count($result->fetchAll()) > 0;
|
||||
$hasReservedJobs = $result->fetch() !== false;
|
||||
$result->closeCursor();
|
||||
return $hasReservedJobs;
|
||||
} catch (Exception $e) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue