diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-10-02 19:41:40 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-10-03 14:01:36 +0200 |
commit | 167dc70238cc4c82e46714fe55a516d48c0d6c76 (patch) | |
tree | c1222956d8bab43aa79bfc6fc018ad1891215dd5 /lib/Db/Item.php | |
parent | 11ed50074dd64e5d532cf310a150a77f519a4a0e (diff) |
Fix various 15.0 bugs
Issue #821,#820,#819
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Db/Item.php')
-rw-r--r-- | lib/Db/Item.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Db/Item.php b/lib/Db/Item.php index d7efdd14b..37497049c 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -591,9 +591,11 @@ class Item extends Entity implements IAPI, \JsonSerializable * * @return boolean */ - public function isSupportedMime(string $mime): bool + public function isSupportedMime(?string $mime): bool { + return ( + $mime !== null || stripos($mime, 'audio/') !== false || stripos($mime, 'image/') !== false || stripos($mime, 'video/') !== false); |