From 631ae17ee326446e8e7cb104fd7de865fbdac4dc Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 27 Jun 2018 09:44:49 +0000 Subject: [PATCH] Allow plugins to set class attribute for preferences section --- program/steps/settings/func.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 1b28d1a7a..00c9f71d1 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -157,7 +157,7 @@ function rcmail_user_prefs($current = null) $no_override = array_flip((array)$RCMAIL->config->get('dont_override')); foreach ($sections as $idx => $sect) { - $sections[$idx]['class'] = $idx; + $sections[$idx]['class'] = $sect['class'] ?: $idx; if ($current && $sect['id'] != $current) { continue;