fix is_new issue with enrollment fixes
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 48s
Tests / PHPUnit (push) Failing after 1m22s

This commit is contained in:
root
2026-08-20 19:57:25 -04:00
parent 127098b87c
commit 889c037660
29 changed files with 77306 additions and 293 deletions
+4 -2
View File
@@ -9,7 +9,7 @@ if (!function_exists('student_normalized_enrollment_status')) {
$status = 'withdrawn';
}
if ($status === '' && $studentId > 0) {
if ($studentId > 0) {
$schoolYear = trim((string)($schoolYear ?? ''));
if ($schoolYear === '') {
try {
@@ -44,7 +44,9 @@ if (!function_exists('student_normalized_enrollment_status')) {
}
}
}
$status = $statusCache[$cacheKey];
if (($statusCache[$cacheKey] ?? '') !== '') {
$status = $statusCache[$cacheKey];
}
}
return $status;