Skip to content

Commit 309b849

Browse files
authored
Add checking for files (mimeType) (#10)
1 parent 6c7f087 commit 309b849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LfmItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function isSvg()
110110
*/
111111
public function mimeType()
112112
{
113-
if (is_null($this->mimeType)) {
113+
if ($this->isFile() && is_null($this->mimeType)) {
114114
$this->mimeType = $this->lfm->mimeType();
115115
}
116116

0 commit comments

Comments
 (0)