[Koha-cvs] koha/C4 Labels.pm [dev_week]
Mason James
szrj1m at yahoo.com
Mon Oct 22 05:20:18 CEST 2007
CVSROOT: /sources/koha
Module name: koha
Branch: dev_week
Changes by: Mason James <sushi> 07/10/22 03:20:18
Modified files:
C4 : Labels.pm
Log message:
if the regex fails, then just return the whole string,
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Labels.pm?cvsroot=koha&only_with_tag=dev_week&r1=1.3.4.53&r2=1.3.4.54
Patches:
Index: Labels.pm
===================================================================
RCS file: /sources/koha/koha/C4/Labels.pm,v
retrieving revision 1.3.4.53
retrieving revision 1.3.4.54
diff -u -b -r1.3.4.53 -r1.3.4.54
--- Labels.pm 21 Oct 2007 23:23:46 -0000 1.3.4.53
+++ Labels.pm 22 Oct 2007 03:20:17 -0000 1.3.4.54
@@ -129,6 +129,9 @@
$splits[1] =~ s/\s+$//;
$splits[2] =~ s/\s+$//;
+# if the regex fails, then just return the whole string,
+# better than nothing
+$splits[0] = $lccn if $splits[0] eq '' ;
return @splits;
}
More information about the Koha-cvs
mailing list