fix widthraw spelling
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user