From: Joey Hess Date: Thu, 29 Mar 2012 00:42:37 +0000 (-0400) Subject: fix adding first subscription to pagespec X-Git-Tag: 3.20120419~104 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/6c297c40974648f588d2c8118cc579d35592383d?hp=dadc8222954332e4ea0266dd2645d5758e125114 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 (@) {