浏览代码

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 年之前
父节点
当前提交
1dae65a45f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.