more
[ikiwiki.git] / IkiWiki / UserInfo.pm
index f4e261563d3ef625be6e776014a93eaf7fd691f5..b322b607e4c77e80e78a03c8434543401faa3f6f 100644 (file)
@@ -70,12 +70,12 @@ sub page_subscribers (@) { #{{{
        my @ret;
        my $userinfo=userinfo_retrieve();
        foreach my $user (keys %{$userinfo}) {
-               if (exists $user->{subscriptions} &&
-                   length $user->{subscriptions} &&
-                   exists $user->{email} &&
-                   length $user->{email} &&
-                   grep { globmatch($_, $user->{subscriptions}) } @_) {
-                       push @ret, $user->{email};
+               if (exists $userinfo->{$user}->{subscriptions} &&
+                   length $userinfo->{$user}->{subscriptions} &&
+                   exists $userinfo->{$user}->{email} &&
+                   length $userinfo->{$user}->{email} &&
+                   grep { globlist_match($_, $userinfo->{$user}->{subscriptions}) } @_) {
+                       push @ret, $userinfo->{$user}->{email};
                }
        }
        return @ret;