]> git.koha-community.org Git - koha.git/commit
Handle null-or-empty to Charset::StripNonXmlChars
authorJ. David Bavousett <dbavousett@ptfs.com>
Thu, 10 Sep 2009 15:10:50 +0000 (11:10 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Sat, 12 Sep 2009 12:42:11 +0000 (08:42 -0400)
commit88ba18330530d32177dbd291db9ff8aa93499d3d
treeace52790643163b0676b2cb51e6dc0c71afb7aa9
parent5707371eda0e3e52d0822bdb4c9b15dc091b0bc8
Handle null-or-empty to Charset::StripNonXmlChars

When rebuild_zebra.pl is run from cron, there is an occasional error
of the form:

Use of uninitialized value $str in substitution (s///) at /home/ebpl/kohaclone/C4/Charset.pm line 304.

This error is occuring when the string that is fed to Charset::StripNonXmlChars
is null or undefined, for some reason.

This fix will handle the null-or-empty condition, and thus suppress the error.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Charset.pm