Bug 8532 - improve robustness when converting dates
authorRobin Sheat <robin@catalyst.net.nz>
Tue, 31 Jul 2012 11:22:48 +0000 (13:22 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 31 Aug 2012 15:30:28 +0000 (17:30 +0200)
commit576f87c4fe170d13aa98d87cdffa169e4d352322
tree8a122d32515be3566c9dae8d8c92f4676d220e0b
parent3a10cbda9ac49ebf934e5c15a35d7cb47d7c66c6
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: Paul Poulain <paul.poulain@biblibre.com>
Koha/DateUtils.pm