]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1620750 Prevent log warning for uninit var in checkin_retarget()
authorDan Scott <dscott@laurentian.ca>
Tue, 6 Sep 2016 17:53:02 +0000 (13:53 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 28 Oct 2016 19:09:27 +0000 (15:09 -0400)
commit438ed0ebb669feb6d88cc88962ecbfe10c78f0ce
treeaecce303514d44bea5e8ef50bd9dc54d233d59e9
parent5924d3a93aaf2ea85d996fb37c9638ec42bc93f8
LP#1620750 Prevent log warning for uninit var in checkin_retarget()

If the retarget_mode variable is not initialized, then a warning is generated
in the logs every time an item is checked in. Avoid the warning by
short-circuiting before testing the value in the regex.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm