]> source.dussan.org Git - nextcloud-server.git/commitdiff
use default value when we try to retrieve the theme from the config
authorBjörn Schießle <schiessle@owncloud.com>
Tue, 18 Jun 2013 09:18:31 +0000 (11:18 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Tue, 18 Jun 2013 09:18:31 +0000 (11:18 +0200)
lib/util.php

index 9d864c29754decc5946a6bf124c7ce9207ac6426..bb817ac4dd2811fe889392faea51ac4ef2430448 100755 (executable)
@@ -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';