diff --git a/webinterface.py b/webinterface.py
index d5171b27..436058fc 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -5742,16 +5742,7 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
translate['Go Back'] + '\n'
if showPublishButton:
- if showPublishAsIcon:
- htmlStr += \
- ' ' + \
- '
\n'
- else:
+ if not showPublishAsIcon:
htmlStr += \
' \n'
+ if showPublishButton:
+ if showPublishAsIcon:
+ htmlStr += \
+ ' ' + \
+ '
\n'
+
if editImageClass == 'rightColEdit':
htmlStr += ' \n'
else: