Fix WebP availability check
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
1afa136060
commit
cb3199f061
|
@ -37,6 +37,6 @@ class WebP extends Image {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isAvailable(FileInfo $file): bool {
|
public function isAvailable(FileInfo $file): bool {
|
||||||
return (bool)(imagetypes() && IMG_WEBP);
|
return (bool)(imagetypes() & IMG_WEBP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue