From e2cdae1fa7a35df48206308c99b3b358d494ba90 Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Fri, 11 Jan 2002 12:42:55 +0000 Subject: [PATCH] Sysops that doesn't want to enable css changer at user level only have to clean css folder. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2117 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/options_display.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/options_display.php b/src/options_display.php index 22a074dc..bf464856 100644 --- a/src/options_display.php +++ b/src/options_display.php @@ -57,13 +57,17 @@ function load_optpage_data_display() { } closedir($handle); - $optvals[SMOPT_GRP_GENERAL][] = array( - 'name' => 'custom_css', - 'caption' => _("Custom Stylesheet"), - 'type' => SMOPT_TYPE_STRLIST, - 'refresh' => SMOPT_REFRESH_ALL, - 'posvals' => $css_values - ); + if ( count( $css_values > 1 ) ) { + + $optvals[SMOPT_GRP_GENERAL][] = array( + 'name' => 'custom_css', + 'caption' => _("Custom Stylesheet"), + 'type' => SMOPT_TYPE_STRLIST, + 'refresh' => SMOPT_REFRESH_ALL, + 'posvals' => $css_values + ); + + } $language_values = array(); foreach ($languages as $lang_key => $lang_attributes) { -- 2.25.1