Closed lerni closed 2 years ago
Even tough this prevents the Notice, I'm under the impression, it can lead to empty return - need to verify this a bit closer.
Thanks @micschk - your suggestion looks sensible - I need some time to test. I now saw https://github.com/AirNZ/silverstripe-focuspoint/commit/fe837444860f2205a6de69bd997be7151c1521cf from @mikenz which is longer but for me a bit easier to read.
edit: and now I saw your last comment :wink:
with https://github.com/jonom/silverstripe-focuspoint/commit/560254cfc31831b38a4a88483ecbb0b1e5052ad4 merged (4.0.2) now we see
[Notice] Undefined index: Width
instead of[Emergency] Uncaught Error: Call to a member function getWidth() on array