diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2021-02-11 15:58:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 15:58:14 +0100 |
commit | 5babad4f6fb983709e7851bb5cea4bc0d2c7fe4c (patch) | |
tree | 986a11dab9adea8a3eb045ad841c307f4d6cc832 | |
parent | e207b94554068d30c9905bacf648730fa446ac45 (diff) | |
parent | cc554890c187a03079104e070318449d76ff41e3 (diff) | |
download | nextcloud-server-5babad4f6fb983709e7851bb5cea4bc0d2c7fe4c.tar.gz nextcloud-server-5babad4f6fb983709e7851bb5cea4bc0d2c7fe4c.zip |
Merge pull request #25576 from nextcloud/fix/webp_check
Fix WebP availability check
-rw-r--r-- | lib/private/Preview/WebP.php | 2 |
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); } } |