summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-02-11 11:31:38 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-02-11 15:00:33 +0000
commitcb3199f06134ca48b6744060a7883a87b95be7d1 (patch)
treeb48d26309c6156bb756510f219144f95d72e11f5 /lib/private
parent1afa1360608cf5bdd8f197c523ceb21d92c9d758 (diff)
downloadnextcloud-server-cb3199f06134ca48b6744060a7883a87b95be7d1.tar.gz
nextcloud-server-cb3199f06134ca48b6744060a7883a87b95be7d1.zip
Fix WebP availability check
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Preview/WebP.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/WebP.php b/lib/private/Preview/WebP.php
index 8f10a08206b..d2172b1242c 100644
--- a/lib/private/Preview/WebP.php
+++ b/lib/private/Preview/WebP.php
@@ -37,6 +37,6 @@ class WebP extends Image {
}
public function isAvailable(FileInfo $file): bool {
- return (bool)(imagetypes() && IMG_WEBP);
+ return (bool)(imagetypes() & IMG_WEBP);
}
}