From 4e9b187c1454da3bea23df259518b7c58a4a78b6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 15 Feb 2016 16:49:32 +0000 Subject: [PATCH] Bug 14658: Remove warning if prefs are not defined Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- opac/opac-memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index 7132d8b350..46c91f93ac 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -258,7 +258,7 @@ sub GetHiddenFields { C4::Context->preference( "PatronSelfModificationBorrowerUnwantedField" ) : C4::Context->preference( "PatronSelfRegistrationBorrowerUnwantedField" ); - my @fields = split( /\|/, $BorrowerUnwantedField ); + my @fields = split( /\|/, $BorrowerUnwantedField || q|| ); foreach (@fields) { next unless m/\w/o; #Don't hide mandatory fields -- 2.39.5