diff --git a/zmsdb/src/Zmsdb/Helper/ArchivedDataIntoStatisticByCron.php b/zmsdb/src/Zmsdb/Helper/ArchivedDataIntoStatisticByCron.php index 68209d52d..fe48db9f6 100644 --- a/zmsdb/src/Zmsdb/Helper/ArchivedDataIntoStatisticByCron.php +++ b/zmsdb/src/Zmsdb/Helper/ArchivedDataIntoStatisticByCron.php @@ -89,7 +89,7 @@ protected function writeProcessInStatisticTable( ) { $requestList = (new \BO\Zmsdb\Request())->readRequestByArchiveId($process->archiveId); $requestList = ($requestList->count()) ? $requestList : [new \BO\Zmsentities\Request(['id' => '-1'])]; - $processingTime = $requestList->count() === 1 ? $process->bearbeitungszeit : null; + $processingTime = ($requestList->count() && $requestList->count() === 1) ? $process->bearbeitungszeit : null; foreach ($requestList as $request) { $archived = true; // for verbose