From: Joey Hess Date: Thu, 29 Mar 2012 00:42:37 +0000 (-0400) Subject: fix adding first subscription to pagespec X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6c297c40974648f588d2c8118cc579d35592383d;p=ikiwiki.git fix adding first subscription to pagespec --- 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 (@) {