LP#1620750 Prevent log warning for uninit var in checkin_retarget() user/csharp/lp1620750_uninit_var_checkin_retarget
authorDan Scott <dscott@laurentian.ca>
Tue, 6 Sep 2016 17:53:02 +0000 (13:53 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 29 Sep 2016 12:52:18 +0000 (08:52 -0400)
commit350a58e21930dbc192c014d373b5c0dcd61e10d0
tree22e7fbae0daf7614797619f10dd05f00436305e8
parent9dd9dcaf74f72a84a46d9ac60a1d5c13ba932eff
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm