Fix undefined $from– variable: brace-interpolate variables before en-dash in double-quoted string

This commit is contained in:
Pontoporeia
2026-04-15 12:55:58 +02:00
parent 6f04514aa2
commit 1b104df51e

View File

@@ -365,7 +365,7 @@ document.addEventListener('DOMContentLoaded', () => {
$from = $offset + 1;
$to = min($offset + $perPage, $totalCount);
if ($totalPages > 1) {
echo "$from$to sur $totalCount TFE";
echo "{$from}{$to} sur {$totalCount} TFE";
} else {
echo "$totalCount TFE";
}