diff options
Diffstat (limited to 'SiteSummary.pm')
-rw-r--r-- | SiteSummary.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SiteSummary.pm b/SiteSummary.pm index 645e855..774b119 100644 --- a/SiteSummary.pm +++ b/SiteSummary.pm @@ -283,6 +283,10 @@ sub get_hardware_info { } close(FILE); + # Avoid returning bogus vendor and model + undef $vendor if ("Not Specified" eq $vendor); + undef $model if ("Not Specified" eq $model); + # Append version string to get for example the thinkpad model # name, but ignore bogus entries. $model = "$model $version" if ($version |