fix enrollment and email send to parent
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 49s
Tests / PHPUnit (push) Failing after 1m20s

This commit is contained in:
root
2026-08-27 12:39:08 -04:00
parent 7b86cf5218
commit 0ae9993d82
19 changed files with 37831 additions and 1313 deletions
+1 -8
View File
@@ -101,20 +101,13 @@ $disableEmergencyBtn = count($emergencies) >= $maxEmergency;
<?php endif; ?>
<?php
$hasUnenrolled = false;
$unenrolledStudentIds = [];
foreach ($existingKids as $kid) {
if ($kid['enrollment'] == 0) {
$hasUnenrolled = true;
$studentId = (int) ($kid['id'] ?? 0);
if ($studentId > 0) {
$unenrolledStudentIds[] = $studentId;
}
}
}
usort($unenrolledStudentIds, static fn (int $a, int $b): int => $b <=> $a);
$enrollmentUrl = base_url('/parent/enroll_classes?' . http_build_query([
'start' => 2,
'students' => implode(',', $unenrolledStudentIds),
'start' => 1,
]));
?>