summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-09 17:59:56 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-09 17:59:56 -0500
commit141d36388836d2fba71b5aa206d944df3cca3eac (patch)
treedae17a2c7f94ca810e13666baca9f1e5cd39398a /IkiWiki
parent14002b58d2aa9b20b541f75287bac38b40677ba7 (diff)
In preferences, allow the subscriptions and email fields to be cleared
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/CGI.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index 8809e8510..65a1d7fa0 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -275,7 +275,7 @@ sub cgi_prefs ($$) { #{{{
}
elsif ($form->submitted eq 'Save Preferences' && $form->validate) {
foreach my $field (qw(email subscriptions)) {
- if (defined $form->field($field) && length $form->field($field)) {
+ if (defined $form->field($field)) {
userinfo_set($user_name, $field, $form->field($field)) ||
error("failed to set $field");
}