From e0820e4f4e101bd8502f1f2bb0c1c0c7fd8b21e7 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 8 May 2004 22:19:53 +0000 Subject: hash in boolean context is bad (dixit Rafael) --- MDK/Common/System.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MDK') diff --git a/MDK/Common/System.pm b/MDK/Common/System.pm index a864968..af96481 100644 --- a/MDK/Common/System.pm +++ b/MDK/Common/System.pm @@ -402,7 +402,7 @@ sub update_gnomekderc { } #- if category has not been found above. - if (%subst) { + if (keys %subst) { chomp $s; $s .= "\n[$category]\n"; $s .= "$_->[0]=$_->[1]\n" foreach values %subst; -- cgit v1.2.1