Skip to content

Commit 4ab54d2

Browse files
committed
Fix the mapped value for isImage
For files this is a boolean but the attachment column expects a TINYINT. See https://www.woltlab.com/community/thread/312610/
1 parent 557c41c commit 4ab54d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wcfsetup/install/files/lib/data/attachment/Attachment.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public function __get($name)
419419
'filename' => $file->filename,
420420
'filesize' => $file->fileSize,
421421
'fileType' => $file->mimeType,
422-
'isImage' => $file->isImage(),
422+
'isImage' => $file->isImage() ? 1 : 0,
423423
'height' => $file->height ?: 0,
424424
'width' => $file->width ?: 0,
425425
'thumbnailType' => $file->getThumbnail('')?->getMimeType() ?: '',

0 commit comments

Comments
 (0)