Merge pull request #25586 from nextcloud/backport/25576/stable21

[stable21] Fix WebP availability check
This commit is contained in:
Roeland Jago Douma 2021-02-11 19:49:10 +01:00 committed by GitHub
commit 1ddf59efc0
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);
}
}