[BUGFIX] Catch __PHP_Incomplete_Class classes 86/55686/2
authorFrank Naegler <frank.naegler@typo3.org>
Mon, 12 Feb 2018 18:08:11 +0000 (19:08 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 12 Feb 2018 21:33:20 +0000 (22:33 +0100)
Resolves: #66587
Releases: master, 8.7
Change-Id: I444c818e9f81d3595ca68513800c85d9f993f9b4
Reviewed-on: https://review.typo3.org/55686
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/scheduler/Classes/Scheduler.php

index b0684a3..0d3f16e 100644 (file)
@@ -446,7 +446,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;
     }
 
     /**