diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-06-19 11:58:29 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-06-19 11:58:29 +0200 |
commit | 8406d3f7b1a8e33c4fbd378660f1510a1d44346d (patch) | |
tree | 78408961114f7157239c514016653881dd23b4b1 /lib/util.php | |
parent | 7f6a9e8fef6216538bbd839baf24eb655e2c57e4 (diff) | |
download | nextcloud-server-8406d3f7b1a8e33c4fbd378660f1510a1d44346d.tar.gz nextcloud-server-8406d3f7b1a8e33c4fbd378660f1510a1d44346d.zip |
also use the default theme if the theme is set to an empty string in the config.php
Diffstat (limited to 'lib/util.php')
-rwxr-xr-x | lib/util.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'; |