Browse Source

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 năm trước cách đây
mục cha
commit
1dae65a45f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
 
     // 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.