From 9a6f7785a8f03960668559eba2ffed97b3e9908f Mon Sep 17 00:00:00 2001 From: fidian Date: Thu, 19 Apr 2001 18:27:32 +0000 Subject: [PATCH] * Fixed a bug I created where the themes would get wiped out. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1260 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/load_prefs.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/load_prefs.php b/src/load_prefs.php index e23c9a5e..cc46e8a9 100644 --- a/src/load_prefs.php +++ b/src/load_prefs.php @@ -16,8 +16,10 @@ define('load_prefs_php', true); global $theme, $chosen_theme, $color; - $theme = array(); - $color = array(); + if (! isset($theme)) + $theme = array(); + if (! isset($color)) + $color = array(); include('../src/validate.php'); include("../config/config.php"); include("../functions/prefs.php"); @@ -42,7 +44,7 @@ if (isset($chosen_theme) && $in_ary && (file_exists($chosen_theme))) { @include($chosen_theme); } else { - if (file_exists($theme[0]["PATH"])) { + if (file_exists(isset($theme) && isset($theme[0]) && $theme[0]["PATH"])) { @include($theme[0]["PATH"]); } else { # -- 2.25.1