Browse Source

More fixes for attempted operation on hashref #74 (#80)

marked 4 years ago
parent
commit
ea5152b105
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/LogBot/Web/Stats.pm

+ 2 - 2
lib/LogBot/Web/Stats.pm

@@ -89,8 +89,8 @@ sub render_meta {
         $event_count //= '0';
     }
 
-    my $channels_in = scalar(grep { !($_->{archived} || $_->{blocked} || $_->{disabled}) } values $config->{channels});
-    my $archived = scalar(grep { $_->{archived} && !($_->{blocked} || $_->{disabled}) } values $config->{channels});
+    my $channels_in = scalar(grep { !($_->{archived} || $_->{blocked} || $_->{disabled}) } values %{$config->{channels}});
+    my $archived = scalar(grep { $_->{archived} && !($_->{blocked} || $_->{disabled}) } values %{$config->{channels}});
 
     $c->render(
         json => {