diff --git a/lib/util.php b/lib/util.php
index ddef0c63c55da806099ff4912f940614aa52263a..4bc02daf36e9103aace5bd28fbac8aed5f5c3c64 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';