Closed lthurston closed 3 years ago
Well, I'll be damned, this is fixed already. Not sure why we don't have this version of the plugin, but that's a me problem. Disregard!
Yep, sorry about that, just waiting on some other support requests!
Fixed in 1.4.19
Description
We've encountered a case where $oldRecord->siteSettings is not set (see api/vendor/verbb/navigation/src/services/Navs.php line 317), resulting in a foreach loop over a null value on line 321:
$oldSiteSettings should be checked to verify it's an array, or typecast to enforce that it's an array.
Steps to reproduce
This is difficult to provide clear information on, but don't think steps to reproduce are necessary to see that it could happen and therefore guardrails should be in place to prevent it.
Additional info
I'll provide a PR.