Skip to content

Conversation

@sscWhitevision
Copy link

Hi,

i found that in MODX 3, the resourceArray property of the controller can be undefined during the OnDocFormPrerender event in certain contexts. This leads to PHP warnings like "Accessing property on non-object" or "Undefined property".
This PR adds a safety check for both the controller and the resourceArray property to prevent these warnings.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant