Skip to content

Commit

Permalink
Add checking for files (mimeType) (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mafftor authored Jun 25, 2022
1 parent 6c7f087 commit 309b849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LfmItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function isSvg()
*/
public function mimeType()
{
if (is_null($this->mimeType)) {
if ($this->isFile() && is_null($this->mimeType)) {
$this->mimeType = $this->lfm->mimeType();
}

Expand Down

0 comments on commit 309b849

Please sign in to comment.