[BUGFIX] New Scheduler Task are executed now 24/36424/2
authorRoman Schuermann <roman.schuermann@wmdb.de>
Fri, 30 Jan 2015 13:39:14 +0000 (14:39 +0100)
committerBenjamin Mack <benni@typo3.org>
Fri, 30 Jan 2015 15:46:38 +0000 (16:46 +0100)
If you create a new scheduler task, it will not be executed.

Resolves: #64636
Releases: master
Change-Id: I0940ad7a0b7e529b5db196a6f3dbe928299f51e8
Reviewed-on: http://review.typo3.org/36424
Reviewed-by: Fabien Udriot <fabien.udriot@ecodev.ch>
Tested-by: Fabien Udriot <fabien.udriot@ecodev.ch>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/scheduler/Classes/Task/AbstractTask.php

index ed23427..14dc00e 100644 (file)
@@ -350,7 +350,7 @@ abstract class AbstractTask {
                );
                $res = $GLOBALS['TYPO3_DB']->exec_SELECT_queryArray($queryArr);
                if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
-                       if ($row['serialized_executions'] !== '') {
+                       if (!empty($row['serialized_executions'])) {
                                $isRunning = TRUE;
                        }
                }