Members.pm - make sure we don't return empty refs (is firstname fallback really needed?)
authorJoe Atzberger (siptest <atz4sip@arwen.metavore.com>
Thu, 7 Feb 2008 18:59:12 +0000 (12:59 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 8 Feb 2008 12:08:04 +0000 (06:08 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Members.pm

index ec32bc5..6accd17 100644 (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;        
 }