From: ebullient Date: Fri, 6 Jul 2007 23:49:59 +0000 (+0000) Subject: list_files vomits over the non-existence of 'none'. The definition of $used_theme is X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cd81f9562ceed8c2fac4462c7f2055e6d9ca5c8c;p=squirrelmail.git 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. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12507 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/page_header.php b/functions/page_header.php index aff1feb3..f69be5bb 100644 --- a/functions/page_header.php +++ b/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.