From 48240a38bbf4262191114a0868f3550f906e3f3e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 27 Jun 2021 17:24:12 +0100 Subject: [PATCH] Fewer lines --- webapp_profile.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index 3439a4fd7..60b285c29 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -1096,22 +1096,19 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str, if mediaInstance: if mediaInstance is True: mediaInstanceStr = 'checked' - blogsInstanceStr = '' - newsInstanceStr = '' + blogsInstanceStr = newsInstanceStr = '' newsInstance = getConfigParam(baseDir, "newsInstance") if newsInstance: if newsInstance is True: newsInstanceStr = 'checked' - blogsInstanceStr = '' - mediaInstanceStr = '' + blogsInstanceStr = mediaInstanceStr = '' blogsInstance = getConfigParam(baseDir, "blogsInstance") if blogsInstance: if blogsInstance is True: blogsInstanceStr = 'checked' - mediaInstanceStr = '' - newsInstanceStr = '' + mediaInstanceStr = newsInstanceStr = '' filterStr = '' filterFilename = \