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; }