From: Bill Erickson Date: Sun, 30 Jan 2011 23:56:11 +0000 (-0500) Subject: protect against undef string warnings X-Git-Tag: opac-tt-poc-demo2~69^2~8 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=aca8ee212ea10bbea48fc67a15ccb4e5558c192d;p=evergreen%2Fequinox.git protect against undef string warnings --- diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/EGWeb.pm b/Open-ILS/src/perlmods/OpenILS/WWW/EGWeb.pm index 256350c603..e804562fd0 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/EGWeb.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/EGWeb.pm @@ -232,8 +232,8 @@ sub parse_config { $ctx->{media_prefix} = (ref $data->{media_prefix}) ? '' : $data->{media_prefix}; $ctx->{base_path} = (ref $data->{base_path}) ? '' : $data->{base_path}; $ctx->{template_paths} = []; - $ctx->{force_valid_xml} = ($data->{force_valid_xml} =~ /true/io) ? 1 : 0; - $ctx->{debug_template} = ($data->{debug_template} =~ /true/io) ? 1 : 0; + $ctx->{force_valid_xml} = ( ($data->{force_valid_xml}||'') =~ /true/io) ? 1 : 0; + $ctx->{debug_template} = ( ($data->{debug_template}||'') =~ /true/io) ? 1 : 0; $ctx->{default_template_extension} = $data->{default_template_extension} || 'tt2'; $ctx->{web_dir} = $data->{web_dir};