commit 8f63ecc1ef714504c4520b646688e592624bdaf1
parent ff4d1a4b2c1f19cd81430d8a086e2aefc627c793
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Mon, 13 Oct 2014 23:10:34 -0600
product_scraper: don't use fetchrow_array in scalar context
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/product_scraper.pl b/product_scraper.pl
@@ -106,7 +106,7 @@ for (keys %product_map) {
my $query = "select * from products where part_num = ?";
my $sth = $dbh->prepare($query);
$sth->execute($part_num);
- if ($sth->fetchrow_array()) {
+ if ($sth->fetchrow_arrayref()) {
$dbh->do("update products set last_seen = ? where part_num = ?",
undef, time, $part_num);
# also update title, brand here?