fix adding first subscription to pagespec

master
Joey Hess 2012-03-28 20:42:37 -04:00
parent dadc822295
commit 6c297c4097
1 changed files with 2 additions and 1 deletions

View File

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