summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Molenaar <sean@m2mobi.com>2020-10-03 13:12:39 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2020-10-03 14:01:36 +0200
commitb9c31a73bda62069a2cbab395a22580b35773b5d (patch)
treed63417969ce38335892acfc96a3c85d93d753536
parent4e6acf9c685400f8af1a89f60e6de7fd217bfe3b (diff)
DB: Fix mime checking
Signed-off-by: Sean Molenaar <sean@m2mobi.com>
-rw-r--r--lib/Db/Item.php4
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));
}
}