]> 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)
committerDan Scott <dscott@laurentian.ca>
Tue, 6 Sep 2016 22:17:22 +0000 (18:17 -0400)
commit3e636391f1092d237dcbb20d3ed363856937a925
tree7b3fd6d545147f9811a2ff4c04542c9cc519215e
parentd33ef5fe47740a7efff6dd46eb97615c239f2bda
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm