Members.pm - make sure we don't return empty refs (is firstname fallback really needed?)

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Joe Atzberger (siptest 2008-02-07 12:59:12 -06:00 committed by Joshua Ferraro
parent d92f4020dc
commit 1527f93f3a

View file

@ -520,7 +520,7 @@ LEFT JOIN categories on borrowers.categorycode=categories.categorycode
$sth->execute($information);
$data = $sth->fetchrow_hashref;
$sth->finish;
return ($data);
($data) and return ($data);
}
return undef;
}