commit 696c68eb3a85faa8694b752d7b55be29a8169c00
parent e71eec5527473f71415a898a86de8ef797f88817
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Mon, 11 May 2015 20:25:48 -0600
product_scraper: fix manufacturer name lookup
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/product_scraper b/product_scraper
@@ -142,7 +142,7 @@ sub mem_exp_scrape_class
$sql = qq{select manufacturer from products where
lower(manufacturer) = ?};
my $manufs = $dbh->selectcol_arrayref($sql, undef, lc($brand));
- if ($manufs) {
+ if (@$manufs) {
# take a risk that the first one is spelled right
if ($manufs->[0] ne $brand) {
print "warn: forcing misspelled $brand to ";