From 3507eba49fc41ac9df610f69df058fb49fddf2c2 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 21 Nov 2007 15:58:54 +0000 Subject: [PATCH] backporting defensive test to prevent warnings git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@8104 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Utils/ModsParser.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/ModsParser.pm b/Open-ILS/src/perlmods/OpenILS/Utils/ModsParser.pm index c0f6b7ba6f..e61ae1abe5 100644 --- a/Open-ILS/src/perlmods/OpenILS/Utils/ModsParser.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/ModsParser.pm @@ -214,7 +214,7 @@ sub modsdoc_to_values { $data->{$class}->{$type} = $arr; } } - $data->{$class}->{$type} =~ s/\s+/ /go; + $data->{$class}->{$type} =~ s/\s+/ /go if ($data->{$class}->{$type}); } } -- 2.11.0