From 9693e53d229843b2184106c331ef1a02aa24c718 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Sat, 12 Sep 2009 14:44:41 +0000 Subject: [PATCH] suppress notice --- admin/panels/themes/admin.themes.style.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/admin/panels/themes/admin.themes.style.php b/admin/panels/themes/admin.themes.style.php index 443a0d3..a74d6bb 100644 --- a/admin/panels/themes/admin.themes.style.php +++ b/admin/panels/themes/admin.themes.style.php @@ -55,8 +55,12 @@ global $fp_config; $this->defprev = BLOG_BASEURL . ADMIN_DIR . 'panels/'. ADMIN_PANEL .'/preview-default.png'; - $this->smarty->assign('current_style', - admin_theme_data(THEMES_DIR . THE_THEME . '/' .$fp_config['general']['style'] .'/style.conf.php', THE_THEME, $this->defprev)); + if (isset($fp_config['general']['style'])) + $this->smarty->assign('current_style', + admin_theme_data(THEMES_DIR . THE_THEME . '/' + .$fp_config['general']['style'] .'/style.conf.php', + THE_THEME, $this->defprev)); + $this->smarty->assign('available_styles', $this->style_list()); }