Merge pull request #2718 from nslxndr/fix-log-endtime

Undefined offset in error log
This commit is contained in:
Sarah Hoffmann 2022-05-23 16:25:41 +02:00 committed by GitHub
commit b593fe9c3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ function logEnd(&$oDB, $hLog, $iNumResults)
if (CONST_Log_DB) {
$aEndTime = explode('.', $fEndTime);
if (!$aEndTime[1]) {
if (!isset($aEndTime[1])) {
$aEndTime[1] = '0';
}
$sEndTime = date('Y-m-d H:i:s', $aEndTime[0]).'.'.$aEndTime[1];