diff --git a/daemon.py b/daemon.py
index dcfc2284..05d56c50 100644
--- a/daemon.py
+++ b/daemon.py
@@ -2934,9 +2934,12 @@ class PubServer(BaseHTTPRequestHandler):
self.path, self.server.domain,
self.server.port,
self.server.httpPrefix).encode()
- self._set_headers('text/html', len(msg),
- cookie, callingDomain)
- self._write(msg)
+ if msg:
+ self._set_headers('text/html', len(msg),
+ cookie, callingDomain)
+ self._write(msg)
+ else:
+ self._404()
self.server.GETbusy = False
return
diff --git a/webinterface.py b/webinterface.py
index 88873b08..768a6ca0 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -1098,22 +1098,37 @@ def htmlEditProfile(translate: {}, baseDir: str, path: str,
instanceStr += \
' '
- instanceStr += \
- '
'
+ if instanceTitle:
+ instanceStr += \
+ '
'
+ else:
+ instanceStr += \
+ '
'
instanceStr += \
' '
- instanceStr += \
- '
'
+ if instanceDescriptionShort:
+ instanceStr += \
+ '
'
+ else:
+ instanceStr += \
+ '
'
instanceStr += \
' '
- instanceStr += \
- ' '
+ if instanceDescription:
+ instanceStr += \
+ ' '
+ else:
+ instanceStr += \
+ ' '
instanceStr += \
' '