Skip to content

Commit

Permalink
Merge pull request #25586 from nextcloud/backport/25576/stable21
Browse files Browse the repository at this point in the history
[stable21] Fix WebP availability check
  • Loading branch information
rullzer authored Feb 11, 2021
2 parents 1afa136 + cb3199f commit 1ddf59e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Preview/WebP.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ public function getMimeType(): string {
}

public function isAvailable(FileInfo $file): bool {
return (bool)(imagetypes() && IMG_WEBP);
return (bool)(imagetypes() & IMG_WEBP);
}
}

0 comments on commit 1ddf59e

Please sign in to comment.