Petites corrections

This commit is contained in:
Fred Tempez 2023-11-15 09:35:48 +01:00
parent cc0c098ea8
commit 44cfe0433a

View File

@ -1198,7 +1198,6 @@ class common
* @param string|array $to Destinataire * @param string|array $to Destinataire
* @param string $subject Sujet * @param string $subject Sujet
* @param string $content Contenu * @param string $content Contenu
* @return bool
*/ */
public function sendMail($to, $subject, $content, $replyTo = null, $from = 'no-reply@localhost') public function sendMail($to, $subject, $content, $replyTo = null, $from = 'no-reply@localhost')
{ {
@ -1456,16 +1455,12 @@ class common
switch ($this->getData(['user', $userId, 'signature'])) { switch ($this->getData(['user', $userId, 'signature'])) {
case 1: case 1:
return $userId; return $userId;
break;
case 2: case 2:
return $this->getData(['user', $userId, 'pseudo']); return $this->getData(['user', $userId, 'pseudo']);
break;
case 3: case 3:
return $this->getData(['user', $userId, 'firstname']) . ' ' . $this->getData(['user', $userId, 'lastname']); return $this->getData(['user', $userId, 'firstname']) . ' ' . $this->getData(['user', $userId, 'lastname']);
break;
case 4: case 4:
return $this->getData(['user', $userId, 'lastname']) . ' ' . $this->getData(['user', $userId, 'firstname']); return $this->getData(['user', $userId, 'lastname']) . ' ' . $this->getData(['user', $userId, 'firstname']);
break;
default: default:
return $this->getData(['user', $userId, 'firstname']); return $this->getData(['user', $userId, 'firstname']);
} }