The function localtime is called a couple of times in C4/Auth.pm in list context rather than scalar context. Patch sent for 3.0.x
Problem still occurred on one place in code. Patch sent for master (3.4). diff --git a/C4/Auth.pm b/C4/Auth.pm index 6ba852d..58ce63e 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -717,7 +717,7 @@ sub checkauth { ( $return, $cardnumber ) = checkpw( $dbh, $userid, $password, $query ); } if ($return) { - _session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},localtime); + _session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},scalar localtime); if ( $flags = haspermission( $userid, $flagsrequired ) ) { $loggedin = 1; } --
Patch pushed please test and close
This bug has a patch presently committed to HEAD and 3.2.x. Please take the appropriate action to update the status of this bug. Remember, bugs which have been resolved should be tested and marked closed, preferably by the original reporter.
*** Bug 3295 has been marked as a duplicate of this bug. ***