]> source.dussan.org Git - nextcloud-server.git/commitdiff
JobList: Typecast last_run to integer
authorGeorg Ehrke <developer@georgehrke.com>
Thu, 30 Jan 2020 11:00:41 +0000 (12:00 +0100)
committerGeorg Ehrke <developer@georgehrke.com>
Thu, 30 Jan 2020 11:01:02 +0000 (12:01 +0100)
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
lib/private/BackgroundJob/JobList.php

index 12da0c4da10c2f06caf92e04d1b71debe63cc869..23695bfbe03a66a931bbba672f5b797ba316f379 100644 (file)
@@ -276,7 +276,7 @@ class JobList implements IJobList {
                        }
 
                        $job->setId((int) $row['id']);
-                       $job->setLastRun($row['last_run']);
+                       $job->setLastRun((int) $row['last_run']);
                        $job->setArgument(json_decode($row['argument'], true));
                        return $job;
                } catch (AutoloadNotAllowedException $e) {