[BUGFIX] Properly check `serialized_executions` to avoid warnings with PHP 7.2
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / Classes / Task / AbstractTask.php
index 9fc0ee3..4ea61ae 100644 (file)
@@ -430,7 +430,7 @@ abstract class AbstractTask implements LoggerAwareInterface
             ->fetch();
 
         $runningExecutions = [];
-        if ($row && $row['serialized_executions'] !== '') {
+        if ($row && !empty($row['serialized_executions'])) {
             $runningExecutions = unserialize($row['serialized_executions']);
         }
         // Count the number of existing executions and use that number as a key