sourcebans-pp
sourcebans-pp copied to clipboard
Fix fatal error in Log::add
Motivation and Context
Log::add causes an error after saving. "Fatal error: Uncaught Error: Cannot use object of type ADORecordSet_mysqli as array"
How Has This Been Tested?
- Tested: Fixed fatal error in page when I saving changes in xampp and production website,
PHP: 7.4.11 MySQL: v5.5.5-10.4.14-MariaDB
Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [x] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [x] I have read the CONTRIBUTING document.