]> git.evergreen-ils.org Git - contrib/Conifer.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:38 +0000 (15:09 -0400)
commitc84a2cbd19d00e2e59861408735266932fd72222
treed0a853bab16bbb045a016c56d6e5b60556f6b718
parent1421e7dc15ebdf946006bfadc924efb125a0d60b
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