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:
@@ -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 ?>">
|
||||
|
||||
Reference in New Issue
Block a user