---
C4/Items.pm | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/C4/Items.pm b/C4/Items.pm
index bc36dd1..0f098af 100644
--- a/C4/Items.pm
+++ b/C4/Items.pm
@@ -1531,6 +1531,7 @@ sub GetHiddenItemnumbers {
my @resultitems;
my $yaml = C4::Context->preference('OpacHiddenItems');
+ $yaml = "$yaml\n"; # YAML is anal on ending \n. Surplus does not hurt
my $hidingrules;
eval {
$hidingrules = YAML::Load($yaml);
@@ -1538,7 +1539,7 @@ sub GetHiddenItemnumbers {
if ($@) {
warn "Unable to parse OpacHiddenItems syspref : $@";
return ();
- } else {
+ }
my $dbh = C4::Context->dbh;
# For each item
@@ -1563,9 +1564,7 @@ sub GetHiddenItemnumbers {
}
}
return @resultitems;
- }
-
- }
+}
=head3 get_item_authorised_values
--
1.6.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/