From 5838b70b061624423c0ab5c77abd94257b201398 Mon Sep 17 00:00:00 2001 From: Andrew Moore Date: Fri, 23 May 2008 13:35:33 -0500 Subject: [PATCH] removing warnings from C4::Members::GetMember C4::Members::GetMember emitted a few unnecessary warnings when no $type was passed in. This patch prevents that. No functional or documentation changes. 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 2eb0664c28..0fd01f2dab 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -518,7 +518,7 @@ SELECT borrowers.*, categories.category_type, categories.description FROM borrowers LEFT JOIN categories on borrowers.categorycode=categories.categorycode "; - if ($type eq 'cardnumber' || $type eq 'firstname'|| $type eq 'userid'|| $type eq 'borrowernumber'){ + if ( defined $type && ( $type eq 'cardnumber' || $type eq 'firstname'|| $type eq 'userid'|| $type eq 'borrowernumber' ) ){ $information = uc $information; $sth = $dbh->prepare("$select WHERE $type=?"); } else { -- 2.39.5