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. (cherry picked from commit1f66e9fa69) Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com> (cherry picked from commit29beeced80) Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
1481244d1f
commit
a705f76292
|
|
@ -1537,7 +1537,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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue