Sysops that doesn't want to enable css changer at user level only have to
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 11 Jan 2002 12:42:55 +0000 (12:42 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 11 Jan 2002 12:42:55 +0000 (12:42 +0000)
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

index 22a074dc552d0104fbb6be1a520126fbf753829b..bf464856a16b1af366e70aa96715b54aa76a24a1 100644 (file)
@@ -57,13 +57,17 @@ function load_optpage_data_display() {
        }       
        closedir($handle);
     
        }       
        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) {
     
     $language_values = array();
     foreach ($languages as $lang_key => $lang_attributes) {