EE 7.4.9 Trying to access array offset on value of type bool ee/legacy/libraries/Image_lib.php, line 1386 #4319
Labels
Bug: Accepted
Bug has been confirmed, is reproducible, and ready to work on.
I don't have a setup to replicate, but in the code, we're doing:
isset($types[$vals['2']]) throws the error if getimagesize($path) is false. And fwiw, per https://www.php.net/manual/en/function.getimagesize.php
So I'm a little iffy on defaulting to jpeg instead of just bailing out if '2' isn't set. But I'm also not sure that a valid image couldn't do that, so leaving that for another day.
But we either need to bail with feedback when getimagesize($path); is false or have a default set of $v we can return, which seems problematic.
The text was updated successfully, but these errors were encountered: