Don t mix && with and (#1825)

This commit is contained in:
Christophe Maudoux 2019-06-29 21:35:13 +02:00
parent 3e7f87eca6
commit eda8151432

View File

@ -451,7 +451,7 @@ sub updatePersistentSession {
my ( $self, $req, $infos, $uid, $id ) = @_;
# Return if no infos to update
return () unless ( ref $infos eq 'HASH' and %$infos && $self->conf->{enablePersistentStorage} );
return () unless ( ref $infos eq 'HASH' and %$infos and $self->conf->{enablePersistentStorage} );
$uid ||= $req->{sessionInfo}->{ $self->conf->{whatToTrace} }
|| $req->userData->{ $self->conf->{whatToTrace} };