From: Björn Schießle Date: Wed, 19 Jun 2013 09:58:29 +0000 (+0200) Subject: also use the default theme if the theme is set to an empty string in the config.php X-Git-Tag: v6.0.0alpha2~613 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8406d3f7b1a8e33c4fbd378660f1510a1d44346d;p=nextcloud-server.git also use the default theme if the theme is set to an empty string in the config.php --- diff --git a/lib/util.php b/lib/util.php index ddef0c63c55..4bc02daf36e 100755 --- a/lib/util.php +++ b/lib/util.php @@ -819,9 +819,9 @@ class OC_Util { * @return string the theme */ public static function getTheme() { - $theme = OC_Config::getValue("theme"); + $theme = OC_Config::getValue("theme", ''); - if(is_null($theme)) { + if($theme === '') { if(is_dir(OC::$SERVERROOT . '/themes/default')) { $theme = 'default';