From: Paul Poulain Date: Thu, 2 Feb 2012 14:21:25 +0000 (+0100) Subject: Bug 6488 adding a 2nd \n to silence logs X-Git-Tag: v3.08.00~377^2~2 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=1f66e9fa691f9cfd705375450a21c623e0155f52;p=koha_gimpoz Bug 6488 adding a 2nd \n to silence logs YAML don't like when you try to open a YAML file with just a \n. This patch add a 2nd \n to silence logs. --- diff --git a/C4/Items.pm b/C4/Items.pm index eb1c51cfd4..04cb4174f1 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1629,7 +1629,7 @@ sub GetHiddenItemnumbers { my @resultitems; my $yaml = C4::Context->preference('OpacHiddenItems'); - $yaml = "$yaml\n"; # YAML is anal on ending \n. Surplus does not hurt + $yaml = "$yaml\n\n"; # YAML is anal on ending \n. Surplus does not hurt my $hidingrules; eval { $hidingrules = YAML::Load($yaml);