Selaa lähdekoodia

list_files vomits over the non-existence of 'none'. The definition of $used_theme is
arguably wrong, but either way, 'none' means 'none', and we shouldn't go off
listing files if that's the value.

Erin Schnabel 18 vuotta sitten
vanhempi
commit
1dae65a45f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      functions/page_header.php

+ 1 - 1
functions/page_header.php

@@ -70,7 +70,7 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE
     $aUserStyles = array();
     $aUserStyles = array();
 
 
     // 2. Option user-defined stylesheet from preferences.
     // 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
          * All styles just point to a directory, so we need to include all .css
          * files in that directory. 
          * files in that directory.