summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS1
-rw-r--r--perl-install/harddrake/data.pm4
2 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index f22ac9e71..8900c2a8c 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,5 +1,6 @@
- harddrake:
o list card readers as system components instead of unknows devices
+ o when device has no description, use vendor string
Version 12.24 - 03 April 2009
diff --git a/perl-install/harddrake/data.pm b/perl-install/harddrake/data.pm
index f72ef0e86..e100592d8 100644
--- a/perl-install/harddrake/data.pm
+++ b/perl-install/harddrake/data.pm
@@ -582,8 +582,8 @@ sub custom_id {
$device->{"Socket Designation"} ?
"$device->{name} (" . $device->{"Socket Designation"} . ")" :
$device->{name} ? $device->{name} :
- (defined($device->{description}) ? $device->{description} :
- (defined($device->{Vendor}) ? $device->{Vendor} : $str)));
+ (($device->{description}) ? $device->{description} :
+ (($device->{Vendor}) ? $device->{Vendor} : $str)));
}
1;