Fixing bug no username causes fail.

This commit is contained in:
sergiotarxz 2022-02-09 13:35:58 +01:00
parent cfd89464ce
commit 16e8006374
2 changed files with 3 additions and 3 deletions

View File

@ -153,7 +153,7 @@ EOF
$user->karma( $user_with_new_karma->karma );
$logger->log_info( 'User '
. $user->first_name . ':'
. $user->username . ':'
. ($user->username // '') . ':'
. $user->id_user
. ' has now '
. $user->karma

View File

@ -33,7 +33,7 @@ sub first_name {
if (exists $self->{first_name}) {
return $self->{first_name};
}
return;
return undef;
}
sub id_user {
@ -54,7 +54,7 @@ sub id_user {
if ( exists $self->{username} ) {
return $self->{username};
}
return;
return undef;
}
}