From 5884a983615ed2edd70fdcbd635e5245171ee811 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 13 Jun 2013 21:40:30 +0000 Subject: Fix hash which was not dereferenced --- NEWS | 3 +++ lib/MGA/Advisories.pm | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 138a350..fad0884 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ + +- Fix hash which was not dereferenced + Version 0.5 - add 'new' command to add a new advisory diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm index 7a58b0e..848bf24 100644 --- a/lib/MGA/Advisories.pm +++ b/lib/MGA/Advisories.pm @@ -152,7 +152,7 @@ sub sort_advisories { $advdb->{$by}{$k} = [ adv_sort($advdb, @{$advdb->{$by}{$k}}) ]; } } - $advdb->{sorted} = [ adv_sort($advdb, keys $advdb->{advisories}) ]; + $advdb->{sorted} = [ adv_sort($advdb, keys %{$advdb->{advisories}}) ]; } sub process_template { -- cgit v1.2.1