summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/options.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Cgi/options.py')
-rw-r--r--Mailman/Cgi/options.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py
index c62f69eb4..e77b28676 100644
--- a/Mailman/Cgi/options.py
+++ b/Mailman/Cgi/options.py
@@ -536,6 +536,8 @@ address. Upon confirmation, any other mailing list containing the address
remind = None
nodupes = None
mime = None
+ def __nonzero__(self):
+ len(self.__dict__.keys()) > 0
globalopts = Global()
@@ -567,8 +569,9 @@ address. Upon confirmation, any other mailing list containing the address
globalopts.mime = newval
break
- for gmlist in lists_of_member(mlist, user):
- global_options(gmlist, user, globalopts)
+ if globalopts:
+ for gmlist in lists_of_member(mlist, user):
+ global_options(gmlist, user, globalopts)
# Now print the results
if cantdigest: