list_files vomits over the non-existence of 'none'. The definition of $used_theme is
authorebullient <ebullient@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Jul 2007 23:49:59 +0000 (23:49 +0000)
committerebullient <ebullient@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Jul 2007 23:49:59 +0000 (23:49 +0000)
arguably wrong, but either way, 'none' means 'none', and we shouldn't go off
listing files if that's the value.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12507 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/page_header.php

index aff1feb391eef1e8830b06e01c4cf0ce53db2303..f69be5bb1c3a35b91afb0463185958a8215671f5 100644 (file)
@@ -70,7 +70,7 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE
     $aUserStyles = array();
 
     // 2. Option user-defined stylesheet from preferences.
-    if (!empty($used_theme)) {
+    if (!empty($used_theme) && $used_theme != 'none') {
         /**
          * All styles just point to a directory, so we need to include all .css
          * files in that directory.