From cf51be0fa868cedbc40a47fdc5cb18c05d1f08d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Tue, 18 Jun 2013 11:18:31 +0200 Subject: [PATCH] use default value when we try to retrieve the theme from the config --- lib/util.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util.php b/lib/util.php index 9d864c29754..bb817ac4dd2 100755 --- a/lib/util.php +++ b/lib/util.php @@ -813,9 +813,9 @@ class OC_Util { * @return string the theme */ public static function getTheme() { - $theme = OC_Config::getValue("theme"); + $theme = OC_Config::getValue("theme", ''); - if(!$theme) { + if($theme === '') { if(is_dir(OC::$SERVERROOT . '/themes/default')) { $theme = 'default'; -- 2.39.5