Browse Source

Merge pull request #13609 from nextcloud/backport/13607/stable15

[stable15] Fix integer background job id type error
Roeland Jago Douma 5 years ago
parent
commit
f50de2af23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/private/BackgroundJob/JobList.php

+ 1 - 1
lib/private/BackgroundJob/JobList.php

@@ -273,7 +273,7 @@ class JobList implements IJobList {
 				}
 				}
 			}
 			}
 
 
-			$job->setId($row['id']);
+			$job->setId((int) $row['id']);
 			$job->setLastRun($row['last_run']);
 			$job->setLastRun($row['last_run']);
 			$job->setArgument(json_decode($row['argument'], true));
 			$job->setArgument(json_decode($row['argument'], true));
 			return $job;
 			return $job;