[BUGFIX] Catch __PHP_Incomplete_Class classes
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / Classes / Scheduler.php
index ae33ce6..dfdb9b0 100644 (file)
@@ -434,7 +434,7 @@ class Scheduler implements \TYPO3\CMS\Core\SingletonInterface
      */
     public function isValidTaskObject($task)
     {
-        return $task instanceof Task\AbstractTask;
+        return get_class($task->getExecution()) !== '__PHP_Incomplete_Class' && $task instanceof Task\AbstractTask;
     }
 
     /**