diff options
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 (@) { |