]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix WebP availability check 25576/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 11 Feb 2021 10:31:38 +0000 (11:31 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 11 Feb 2021 10:31:38 +0000 (11:31 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/Preview/WebP.php

index 8f10a08206bdb44cca592d77062627fc0f95372e..d2172b1242c4ab12ec870e6b06e1cb465a785070 100644 (file)
@@ -37,6 +37,6 @@ class WebP extends Image {
        }
 
        public function isAvailable(FileInfo $file): bool {
-               return (bool)(imagetypes() && IMG_WEBP);
+               return (bool)(imagetypes() & IMG_WEBP);
        }
 }