Bug 11853: Allow to clear the date of birth at the OPAC
[koha-ffzg.git] / about.pl
index 8b1a55b..0a7300c 100755 (executable)
--- a/about.pl
+++ b/about.pl
@@ -32,7 +32,7 @@ use XML::Simple;
 use Config;
 use Search::Elasticsearch;
 use Try::Tiny;
-use YAML::XS qw/LoadFile/;
+use YAML qw/LoadFile/;
 
 use C4::Output;
 use C4::Auth;
@@ -531,7 +531,10 @@ if ( defined C4::Context->config('docdir') ) {
 }
 
 ## Contributors
-my $contributors = LoadFile("$docdir"."/contributors.yaml");
+my $contributors =
+  -e "$docdir" . "/contributors.yaml"
+  ? LoadFile( "$docdir" . "/contributors.yaml" )
+  : {};
 my @people = map {
     {
         name => $_,