From: fabrixxm Date: Fri, 14 Dec 2018 13:11:44 +0000 (+0100) Subject: Don't try to build form for "None" backend. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3f03f3b4b7e5bdaefe80d50ec9185e1bf668b927;p=friendica.git Don't try to build form for "None" backend. Fix #6266 --- diff --git a/mod/admin.php b/mod/admin.php index 50244901d0..c454b325af 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -1532,12 +1532,14 @@ function admin_page_site(App $a) $storage_form_prefix=preg_replace('|[^a-zA-Z0-9]|' ,'', $storage_current_backend); $storage_form = []; - foreach($storage_current_backend::getOptions() as $name => $info) { - $type = $info[0]; - $info[0] = $storage_form_prefix . '_' . $name; - $info['type'] = $type; - $info['field'] = 'field_' . $type . '.tpl'; - $storage_form[$name] = $info; + if (!is_null($storage_current_backend) && $storage_current_backend != "") { + foreach($storage_current_backend::getOptions() as $name => $info) { + $type = $info[0]; + $info[0] = $storage_form_prefix . '_' . $name; + $info['type'] = $type; + $info['field'] = 'field_' . $type . '.tpl'; + $storage_form[$name] = $info; + } }