From 1527f93f3a18cdc67a88a9721868acc295475f19 Mon Sep 17 00:00:00 2001 From: "Joe Atzberger (siptest" Date: Thu, 7 Feb 2008 12:59:12 -0600 Subject: [PATCH] Members.pm - make sure we don't return empty refs (is firstname fallback really needed?) Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Members.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Members.pm b/C4/Members.pm index ec32bc507a..6accd17a6d 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -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; }