Merge pull request #25576 from nextcloud/fix/webp_check

Fix WebP availability check
This commit is contained in:
Christoph Wurst 2021-02-11 15:58:14 +01:00 committed by GitHub
commit 5babad4f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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);
}
}