Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix undefined array key "text" on IOMAD Moodle installations #205

Merged
merged 5 commits into from
Jan 24, 2025

Conversation

dallenk
Copy link
Contributor

@dallenk dallenk commented Dec 28, 2024

Warning: Undefined array key "text" in /var/www/vhosts/sandbox.domain.ca/iomad/local/recompletion/locallib.php on line 102

Have not tested on vanilla Moodle installations, but can't see any reason why it would cause issues.

Dealing with an error saving configuration on IOMAD Moodle.   should not cause any issues with other installations, but did not test on vanilla Moodle installation.
@danmarsden
Copy link
Owner

Thanks for the PR - I'm not clear why you've changed key_exists to array_key_exists? - personally I prefer the shorter version.

Also - it's triggering moodle check failures due to the extra spaces on the line endings of some of the lines in your patch? - I'm happy to merge something like this in, but it would be easier for me if it only changed the required lines (and didn't trip the coding check failures.)

thanks!

@dallenk
Copy link
Contributor Author

dallenk commented Jan 24, 2025

no problem.. to be honest I didn't realize I left that in. I'll double check it.. I quite honestly suck with github so this is pretty new to me.

@danmarsden danmarsden merged commit d2a3513 into danmarsden:MOODLE_403_STABLE Jan 24, 2025
11 checks passed
@danmarsden
Copy link
Owner

Thanks, i dropped in a fix for the spacing issue.

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.

2 participants