Skip to content

Commit 1ddf59e

Browse files
authored
Merge pull request #25586 from nextcloud/backport/25576/stable21
[stable21] Fix WebP availability check
2 parents 1afa136 + cb3199f commit 1ddf59e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Preview/WebP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ public function getMimeType(): string {
3737
}
3838

3939
public function isAvailable(FileInfo $file): bool {
40-
return (bool)(imagetypes() && IMG_WEBP);
40+
return (bool)(imagetypes() & IMG_WEBP);
4141
}
4242
}

0 commit comments

Comments
 (0)