diff options
author | Joey Hess <joey@kitenet.net> | 2012-03-28 20:42:37 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-03-28 20:42:37 -0400 |
commit | 6c297c40974648f588d2c8118cc579d35592383d (patch) | |
tree | 8e8bd86952e726f9ffb60c45929aebbfebd582d6 /IkiWiki | |
parent | dadc8222954332e4ea0266dd2645d5758e125114 (diff) | |
download | ikiwiki-6c297c40974648f588d2c8118cc579d35592383d.tar ikiwiki-6c297c40974648f588d2c8118cc579d35592383d.tar.gz |
fix adding first subscription to pagespec
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/notifyemail.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/notifyemail.pm b/IkiWiki/Plugin/notifyemail.pm index c345e4365..926761d94 100644 --- a/IkiWiki/Plugin/notifyemail.pm +++ b/IkiWiki/Plugin/notifyemail.pm @@ -61,7 +61,8 @@ sub subscribe ($$) { my $user=shift; my $addpagespec=shift; my $pagespec=getsubscriptions($user); - setsubscriptions($user, $pagespec." or ".$addpagespec); + setsubscriptions($user, + length $pagespec ? $pagespec." or ".$addpagespec : $addpagespec); } sub notify (@) { |