Skip to content

Commit 5babad4

Browse files
Merge pull request #25576 from nextcloud/fix/webp_check
Fix WebP availability check
2 parents e207b94 + cc55489 commit 5babad4

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)