]> source.dussan.org Git - nextcloud-server.git/commitdiff
also use the default theme if the theme is set to an empty string in the config.php
authorBjörn Schießle <schiessle@owncloud.com>
Wed, 19 Jun 2013 09:58:29 +0000 (11:58 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Wed, 19 Jun 2013 09:58:29 +0000 (11:58 +0200)
lib/util.php

index ddef0c63c55da806099ff4912f940614aa52263a..4bc02daf36e9103aace5bd28fbac8aed5f5c3c64 100755 (executable)
@@ -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';