improve msg

This commit is contained in:
osaajani 2020-06-13 19:14:13 +02:00
parent cc1a85f030
commit 53d462263c
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ namespace controllers\publics;
return $this->redirect(\descartes\Router::url('Contact', 'list')); return $this->redirect(\descartes\Router::url('Contact', 'list'));
} }
$msg = $result . ' nouveau contact a été inséré.'; $msg = ($result == 1 ? '1' : 'Pas de') . ' nouveau contact inséré.';
if ($result > 1) if ($result > 1)
{ {
$msg = $result . ' nouveaux contacts ont été insérés.'; $msg = $result . ' nouveaux contacts ont été insérés.';