Fix check if class exists
This commit is contained in:
parent
437094bbfc
commit
f93457c41d
|
@ -152,7 +152,7 @@ class JobList implements IJobList {
|
||||||
if ($class === 'OC_Cache_FileGlobalGC') {
|
if ($class === 'OC_Cache_FileGlobalGC') {
|
||||||
$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
|
// job from disabled app or old version of an app, no need to do anything
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue