From 9cf50b9cfdbf253f0f601ae91a0ea90143856dd3 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Tue, 8 Jun 2010 21:16:49 +0100 Subject: [PATCH] Fixed bug in Job factory method Factory method failed to return the newly created object. Fixed. --- HandBrakeCluster/Job.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HandBrakeCluster/Job.class.php b/HandBrakeCluster/Job.class.php index ba3c410..7807d34 100644 --- a/HandBrakeCluster/Job.class.php +++ b/HandBrakeCluster/Job.class.php @@ -87,6 +87,8 @@ class HandBrakeCluster_Job { ); self::$cache[$job->id] = $job; + + return $job; } public static function all() {