diff options
author | Sean Molenaar <sean@m2mobi.com> | 2020-10-03 13:12:39 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-10-03 14:01:36 +0200 |
commit | b9c31a73bda62069a2cbab395a22580b35773b5d (patch) | |
tree | d63417969ce38335892acfc96a3c85d93d753536 | |
parent | 4e6acf9c685400f8af1a89f60e6de7fd217bfe3b (diff) |
DB: Fix mime checking
Signed-off-by: Sean Molenaar <sean@m2mobi.com>
-rw-r--r-- | lib/Db/Item.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Db/Item.php b/lib/Db/Item.php index 339540bff..435fbdbfb 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -595,9 +595,9 @@ class Item extends Entity implements IAPI, \JsonSerializable { return ( - $mime !== null && + $mime !== null && ( stripos($mime, 'audio/') !== false || stripos($mime, 'image/') !== false || - stripos($mime, 'video/') !== false); + stripos($mime, 'video/') !== false)); } } |