arrondi à une décimale

This commit is contained in:
Fred Tempez 2023-10-09 20:02:43 +02:00
parent c54da11107
commit 713b939392

View File

@ -455,7 +455,7 @@ class course extends common
$this->getData(['user', $userId, 'firstname']) . ' ' . $this->getData(['user', $userId, 'lastname']),
$pageId,
helper::dateUTF8('%d %B %Y - %H:%M', $maxTime),
($viewPages * 100)/ $sumPages . ' %',
round(($viewPages * 100)/ $sumPages, 1) . ' %',
template::button('userDelete' . $userId, [
'class' => 'userDelete buttonRed',
'href' => helper::baseUrl() . 'course/userDelete/' . $courseId . '/' . $userId,