[BUGFIX] Keep scheduler functional after task interruption 56/38856/3
authorXavier Perseguers <xavier@typo3.org>
Wed, 22 Apr 2015 13:15:56 +0000 (15:15 +0200)
committerAndreas Fernandez <andreas.fernandez@aspedia.de>
Thu, 23 Apr 2015 09:44:44 +0000 (11:44 +0200)
If the execution of a task was interrupted (e.g., for debugging
purpose with Xdebug), the scheduler module may not open up again
and fails with a PHP warning.

Change-Id: I8d28d2094eeff941b2c09788480e8b79bef766f1
Releases: master, 6.2
Resolves: #66537
Reviewed-on: http://review.typo3.org/38856
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php

index 96fa238..0e1bd9c 100644 (file)
@@ -1083,7 +1083,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
                                                if (!empty($schedulerRecord['lastexecution_failure'])) {
                                                        // Try to get the stored exception object
                                                        /** @var $exception \Exception */
-                                                       $exception = unserialize($schedulerRecord['lastexecution_failure']);
+                                                       $exception = @unserialize($schedulerRecord['lastexecution_failure']);
                                                        // If the exception could not be unserialized, issue a default error message
                                                        if ($exception === FALSE || $exception instanceof \__PHP_Incomplete_Class) {
                                                                $labelDescription = $this->getLanguageService()->getLL('msg.executionFailureDefault');