diff --git a/C4/Auth.pm b/C4/Auth.pm index 6b7dc6602a..c3ad657c69 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1185,7 +1185,7 @@ sub checkauth { if ( $userid ) { # track_login also depends on pref TrackLastPatronActivity - my $patron = Koha::Patrons->search({ userid => $userid })->next; + my $patron = Koha::Patrons->find({ userid => $userid }); $patron->track_login if $patron; }