]> git.evergreen-ils.org Git - working/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:06 +0000 (15:09 -0400)
commitc6f486fd1bce40f722b2072cef69e59ac6df678b
tree8248a3f73497211cae2318144e410e91e4bc5dc6
parent82b16fc7bb93d31cfa9ff30c0614139666bafaf3
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