Merge pull request #3797 from reitermarkus/patch-1

Fix broken tiles caused by implicit cast on PHP 8.
This commit is contained in:
mikeprimm 2022-07-22 20:54:45 -05:00 committed by GitHub
commit 4d34510c8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ if ($stmt->fetch()) {
header('Content-Type: image/jpeg'); header('Content-Type: image/jpeg');
} }
header('ETag: \'' . $thash . '\''); header('ETag: \'' . $thash . '\'');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $tlast / 1000) . ' GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s', (int) ($tlast / 1000)) . ' GMT');
if (is_null($tnewimage)) { if (is_null($tnewimage)) {
echo $timage; echo $timage;
} else { } else {

View File

@ -99,7 +99,7 @@ if ($res && $timage) {
header('Content-Type: image/jpeg'); header('Content-Type: image/jpeg');
} }
header('ETag: \'' . $thash . '\''); header('ETag: \'' . $thash . '\'');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $tlast / 1000) . ' GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s', (int) ($tlast / 1000)) . ' GMT');
echo stream_get_contents($timage); echo stream_get_contents($timage);
} else { } else {
header('Location: ../images/blank.png'); header('Location: ../images/blank.png');