diff options
author | Matteo Pasotti <matteo@mageia.org> | 2013-01-14 17:43:58 +0000 |
---|---|---|
committer | Matteo Pasotti <matteo@mageia.org> | 2013-01-14 17:43:58 +0000 |
commit | e93139ee787b9894e247bf4626591b3d4ebbb258 (patch) | |
tree | 4b7bbb108f0034f062ffb1dd136987d267a8fbe2 | |
parent | a173390d34fc7782b0cf94e3d8c9c9f4cb22d565 (diff) | |
download | manatools-e93139ee787b9894e247bf4626591b3d4ebbb258.tar manatools-e93139ee787b9894e247bf4626591b3d4ebbb258.tar.gz manatools-e93139ee787b9894e247bf4626591b3d4ebbb258.tar.bz2 manatools-e93139ee787b9894e247bf4626591b3d4ebbb258.tar.xz manatools-e93139ee787b9894e247bf4626591b3d4ebbb258.zip |
fixed warning on comparison between string and integer
-rw-r--r-- | AdminPanel/Rpmdragora/icon.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/AdminPanel/Rpmdragora/icon.pm b/AdminPanel/Rpmdragora/icon.pm index 11e51ef8..38ed61ca 100644 --- a/AdminPanel/Rpmdragora/icon.pm +++ b/AdminPanel/Rpmdragora/icon.pm @@ -28,6 +28,7 @@ use strict; our @ISA = qw(Exporter); use lib qw(/usr/lib/libDrakX); use common; +use POSIX; # TO WORKAROUND LOCALIZATION ISSUE use AdminPanel::Rpmdragora::localization; @@ -224,7 +225,7 @@ my %group_icons = ( sub get_icon { my ($group, $parent) = @_; my $path; - if($parent == 0){ + if(isdigit($parent) && $parent == 0){ $path = '/usr/share/icons/'; }else{ $path = '/usr/share/icons/mini/'; |