Bug 13242: Remove warning if no parameter given
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 26 Nov 2014 08:41:36 +0000 (09:41 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 26 Nov 2014 14:17:08 +0000 (11:17 -0300)
commitf63aaf22429eb77de08e2efa15c9ffe479fadde7
tree23073538bbe679c8828bcdbff82f3cc0933fc08a
parent6e75899b00d933b63e4d541b329901c70e05964b
Bug 13242: Remove warning if no parameter given

Without any parameter, dt_from_string should not raise a warning
message.

Test plan:
Verify that the test file t/DateUtils.t displays a warning:

  Use of uninitialized value $date_string in pattern match (m//) at
  Koha/DateUtils.pm line 58

if the change in dt_from_string is not applied (manually edit the file).

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Koha/DateUtils.pm
t/DateUtils.t