From 26f7a3b462b927a66d5f7875dd47e0970c0668f6 Mon Sep 17 00:00:00 2001
From: Lukas Reschke <lukas@statuscode.ch>
Date: Mon, 8 May 2017 15:10:53 +0200
Subject: [PATCH] Check if Nextcloud is installed

Fixes https://github.com/nextcloud/server/issues/4735

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
---
 core/templates/layout.guest.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index 1f38aaef5f9..2c2373d53aa 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -40,7 +40,8 @@
 								<h1 class="hidden-visually">
 									<?php p($theme->getName()); ?>
 								</h1>
-								<?php if(\OC::$server->getConfig()->getAppValue('theming', 'logoMime', false)): ?>
+								<?php if(\OC::$server->getConfig()->getSystemValue('installed', false)
+									&& \OC::$server->getConfig()->getAppValue('theming', 'logoMime', false)): ?>
 									<img src="<?php p($theme->getLogo()); ?>"/>
 								<?php endif; ?>
 							</div>
-- 
GitLab