From f93457c41d6a75bb5614708ff385b06eabc6ffed Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 27 Jun 2014 00:52:37 +0200 Subject: [PATCH] Fix check if class exists --- lib/private/backgroundjob/joblist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/backgroundjob/joblist.php b/lib/private/backgroundjob/joblist.php index 09bba53edb..211d7e9abf 100644 --- a/lib/private/backgroundjob/joblist.php +++ b/lib/private/backgroundjob/joblist.php @@ -152,7 +152,7 @@ class JobList implements IJobList { if ($class === 'OC_Cache_FileGlobalGC') { $class = '\OC\Cache\FileGlobalGC'; } - if (class_exists($class)) { + if (!class_exists($class)) { // job from disabled app or old version of an app, no need to do anything return null; }