From 8406d3f7b1a8e33c4fbd378660f1510a1d44346d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= <schiessle@owncloud.com>
Date: Wed, 19 Jun 2013 11:58:29 +0200
Subject: [PATCH]  also use the default theme if the theme is set to an empty
 string in the config.php

---
 lib/util.php | 4 ++--
 1 file 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';
-- 
GitLab