Flowpack/neos-matomo

Plugin crashes with exception if Matomo returns empty array

p-weisk opened this issue · 2 comments

Whenever the Matomo server returns an empty array, the plugin crashes with an Exception caused by a Notice: Undefined index due to accessing nonexistent array entries.
The code in Classes/Domain/Dto only checks if the result is an array, but not if the array keys it tries to access exist.

Thanks, can you provide a PR?

Yes, please see Pull Request #28 .