Fix error when no modules set

https://docs.humhub.org/docs/admin/requirements lists php 7.4 as minimum requirement. Hence, the array properties should actually be arrays.

This caused log targets to be disabled due to the `ModuleManager::getModules()` throwing an error when `ModuleManager::$modules` would be null.
This commit is contained in:
Martin Rüegg 2023-03-25 13:44:49 +01:00
parent bb0d8a5f1f
commit 5eea8acd9b
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ HumHub Changelog
1.13.2 (Unreleased)
-------------------------
- Fix #6195: Fix ModuleManager disabling logging when now modules set
- Fix #5965: Suppress log warning 'Invalid session auth key attempted for user'
- Fix #6084: Automatic LDAP user registration broken when not all req. attributes provided
- Fix #6104: Fix update user with not existing group

View File

@ -70,9 +70,9 @@ class ModuleManager extends Component
* List of all modules
* This also contains installed but not enabled modules.
*
* @param array $config moduleId-class pairs
* @param array $modules moduleId-class pairs
*/
protected $modules;
protected $modules = [];
/**
* List of all enabled module ids