Skip to content
Snippets Groups Projects
Commit c6849215 authored by Oliver Hader's avatar Oliver Hader Committed by Oliver Hader
Browse files

[BUGFIX] Properly check serialized_executions to avoid PHP 7.2 warnings

To avoid warnings with PHP 7.2, `serialized_executions` must be checked
for being not an empty value.

Resolves: #83691
Releases: master, 8.7, 7.6
Change-Id: I5855a03d6669ec0e82931cfc0110c2b7ca134ad4
Reviewed-on: https://review.typo3.org/55484


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
parent 07ef3630
Branches
Tags
No related merge requests found
...@@ -399,7 +399,7 @@ abstract class AbstractTask ...@@ -399,7 +399,7 @@ abstract class AbstractTask
$res = $GLOBALS['TYPO3_DB']->exec_SELECT_queryArray($queryArr); $res = $GLOBALS['TYPO3_DB']->exec_SELECT_queryArray($queryArr);
$runningExecutions = []; $runningExecutions = [];
if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
if ($row['serialized_executions'] !== '') { if (!empty($row['serialized_executions'])) {
$runningExecutions = unserialize($row['serialized_executions']); $runningExecutions = unserialize($row['serialized_executions']);
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment