Bug 14658: Remove warning if prefs are not defined
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 15 Feb 2016 16:49:32 +0000 (16:49 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 26 Feb 2016 13:47:21 +0000 (13:47 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
opac/opac-memberentry.pl

index 7132d8b..46c91f9 100755 (executable)
@@ -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