fix visibility of fpm-mod_proxy_fcgi-apache-2.4 setting

This commit is contained in:
Michael Kaufmann (d00p)
2014-11-10 12:59:05 +01:00
parent 5499388777
commit bdc0a4caf1

View File

@@ -54,6 +54,12 @@ function getFormFieldOutput($fieldname, $fielddata) {
}
}
// visible = Settings::Get('phpfpm.enabled') for example would result in false if not enabled
// and therefore not shown as intended
if (isset($fielddata['visible'])) {
$do_show = $fielddata['visible'];
}
if ($do_show) {
$returnvalue = call_user_func('getFormFieldOutput' . ucfirst($fielddata['type']), $fieldname, $fielddata);
}