From 1f66e9fa691f9cfd705375450a21c623e0155f52 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Thu, 2 Feb 2012 15:21:25 +0100 Subject: [PATCH] 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. --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5