Merge pull request #10446 from MrPetovan/bug/10439-addon-settings-forms

Use correct DBA method in mod/settings addon form post
This commit is contained in:
Tobias Diekershoff 2021-06-29 19:13:13 +02:00 committed by GitHub
commit 1701ea2034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ function settings_content(App $a)
if (($a->argc > 1) && ($a->argv[1] === 'addon')) {
$addon_settings_forms = [];
foreach (DI::dba()->select('hook', ['file', 'function'], ['hook' => 'addon_settings']) as $hook) {
foreach (DI::dba()->selectToArray('hook', ['file', 'function'], ['hook' => 'addon_settings']) as $hook) {
$data = '';
Hook::callSingle(DI::app(), 'addon_settings', [$hook['file'], $hook['function']], $data);
$addon_settings_forms[] = $data;