[Koha-bugs] [Bug 5066] Incorrect use of localtime function when calling _session_log
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Nov 4 10:22:41 CET 2010
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5066
--- Comment #1 from M. de Rooy <m.de.rooy at rijksmuseum.nl> 2010-11-04 09:22:40 UTC ---
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;
}
--
--
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the Koha-bugs
mailing list