diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-01-09 17:59:56 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-01-09 17:59:56 -0500 |
commit | 141d36388836d2fba71b5aa206d944df3cca3eac (patch) | |
tree | dae17a2c7f94ca810e13666baca9f1e5cd39398a /IkiWiki | |
parent | 14002b58d2aa9b20b541f75287bac38b40677ba7 (diff) |
In preferences, allow the subscriptions and email fields to be cleared
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/CGI.pm | 2 |
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"); } |