overgebleven PHP 8 warnings uit het log opgelost

- Schoolscores/Lijsten: ontbrekend gemiddelde of orgversie geeft null/''
- Lijsten, Userlijsten, ijkpuntengrafiek, ijkpuntentabel: geen foreach
  over false bij een lijst zonder scores
- Pdfmaker: oude pdf alleen verwijderen als het bestand bestaat
- Compactsop_model: 404 als record of pdf-bestand ontbreekt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 13:14:10 +02:00
co-authored by Claude Opus 5.5
parent 24a86e3816
commit 6132b79271
7 changed files with 11 additions and 9 deletions
@@ -47,7 +47,7 @@
xastitel = '<?php echo $lijst->label ?>';
<?php } ?>
<?php foreach($lijst->scores as $index2 => $score){
<?php foreach($lijst->scores ?: [] as $index2 => $score){
?>
labels.push('<?= $score->nummer ?>');
@@ -41,7 +41,7 @@
</tr>
</thead>
<tbody>
<?php foreach($lijst->scores as $score){
<?php foreach($lijst->scores ?: [] as $score){
$kleur = $score->disabled == 'T' || $score->disablenvt == 'T' ? '#808080' : $score->kleur; ?>
<tr style="border: 1px solid grey">
<td style="vertical-align:top; text-align: right; border-right: 1px solid grey; padding-left: 3px; background-color: <?= $kleur ?>">