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:
parent
d92f4020dc
commit
1527f93f3a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue