]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #10446 from MrPetovan/bug/10439-addon-settings-forms
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 29 Jun 2021 17:13:13 +0000 (19:13 +0200)
committerGitHub <noreply@github.com>
Tue, 29 Jun 2021 17:13:13 +0000 (19:13 +0200)
Use correct DBA method in mod/settings addon form post

mod/settings.php

index c94490a87baae53999f40b8d8ab6ccb1bbac7721..e042ed8e85d3e442d66c9d1a7bc029d420fc5396 100644 (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;