diff --git a/webinterface.py b/webinterface.py
index 71df392fc..94b681d3e 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -5572,6 +5572,7 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
htmlStr += '
\n'
linksFilename = baseDir + '/accounts/links.txt'
+ linksFileContainsEntries = False
if os.path.isfile(linksFilename):
linksList = None
with open(linksFilename, "r") as f:
@@ -5605,6 +5606,7 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
htmlStr += \
'
' + lineStr + '
\n' + linksFileContainsEntries = True - if not rssIconAtTop: + if linksFileContainsEntries and not rssIconAtTop: htmlStr += '