[Pkg-owncloud-commits] [owncloud] 16/61: Dont try to execute jobs that no longer exist

David Prévot taffit at moszumanska.debian.org
Thu Jul 31 03:51:42 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit df0d00c8c6a8553e245182f03999e50836d688cc
Author: Robin Appelman <icewind at owncloud.com>
Date:   Fri Jul 25 18:02:02 2014 +0200

    Dont try to execute jobs that no longer exist
---
 lib/private/backgroundjob/joblist.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/private/backgroundjob/joblist.php b/lib/private/backgroundjob/joblist.php
index 211d7e9..9d15cd1 100644
--- a/lib/private/backgroundjob/joblist.php
+++ b/lib/private/backgroundjob/joblist.php
@@ -96,7 +96,10 @@ class JobList implements IJobList {
 		$query->execute();
 		$jobs = array();
 		while ($row = $query->fetch()) {
-			$jobs[] = $this->buildJob($row);
+			$job = $this->buildJob($row);
+			if ($job) {
+				$jobs[] = $job;
+			}
 		}
 		return $jobs;
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list