From b6036418075da2f5137ba68c426fbb4fe5f5f0b3 Mon Sep 17 00:00:00 2001 From: Friendika Date: Fri, 22 Apr 2011 00:11:28 -0700 Subject: doc updates --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 13d6a36d2..552c6ebb1 100644 --- a/boot.php +++ b/boot.php @@ -2513,7 +2513,7 @@ function current_theme(){ $a = get_app(); $system_theme = ((isset($a->config['system']['theme'])) ? $a->config['system']['theme'] : ''); - $theme_name = ((x($_SESSION,'theme')) ? $_SESSION['theme'] : $system_theme); + $theme_name = ((is_array($_SESSION) && x($_SESSION,'theme')) ? $_SESSION['theme'] : $system_theme); if($theme_name && file_exists('view/theme/' . $theme_name . '/style.css')) return($theme_name); -- cgit v1.2.3