]> git.koha-community.org Git - koha.git/commit
Bug 8532 - improve robustness when converting dates
authorRobin Sheat <robin@catalyst.net.nz>
Tue, 31 Jul 2012 11:22:48 +0000 (13:22 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 7 Aug 2012 20:52:23 +0000 (08:52 +1200)
commitb5c8aad0f643b966f3701bc2da63c0bf9c54e4c3
tree66aad050f8c4376a500b42ae14421bfd552edf6e
parent99a70e30a0f0e1eaac01ac873280681dfc72dd3d
Bug 8532 - improve robustness when converting dates

If undef is passed to the date format conversion function, it dies. This
can happen when you have old data in the database. Better to handle it
in some fashion rather than die, so now it just returns undef too.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
I replace "return undef" with just "return" to pass perlcritic

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Koha/DateUtils.pm