fix widthraw spelling
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 47s
Tests / PHPUnit (push) Failing after 1m16s

This commit is contained in:
root
2026-08-20 16:07:34 -04:00
parent bfa343b69f
commit 246def8ca9
7 changed files with 20 additions and 31 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ if (!function_exists('student_normalized_enrollment_status')) {
{
$studentId = (int)($student['student_id'] ?? $student['id'] ?? 0);
$status = strtolower(trim((string)($student['enrollment_status'] ?? '')));
if ($status === 'widthran' || $status === 'widthrawan' || $status === 'withdrawan' || $status === 'withdrawn student' || (int)($student['is_withdrawn'] ?? 0) === 1) {
if ($status === 'withdrawn student' || (int)($student['is_withdrawn'] ?? 0) === 1) {
$status = 'withdrawn';
}
@@ -35,7 +35,7 @@ if (!function_exists('student_normalized_enrollment_status')) {
->get(1)
->getRowArray();
$rowStatus = strtolower(trim((string)($row['enrollment_status'] ?? '')));
if ($rowStatus === 'widthran' || $rowStatus === 'widthrawan' || $rowStatus === 'withdrawan' || $rowStatus === 'withdrawn student' || (int)($row['is_withdrawn'] ?? 0) === 1) {
if ($rowStatus === 'withdrawn student' || (int)($row['is_withdrawn'] ?? 0) === 1) {
$rowStatus = 'withdrawn';
}
$statusCache[$cacheKey] = $rowStatus;