| @@ 48-53 (lines=6) @@ | ||
| 45 | $department = $federal_departments[$user_entity->federal]; |
|
| 46 | ||
| 47 | // otherwise if user is student or academic |
|
| 48 | } elseif ($userType == 'student' || $userType == 'academic') { |
|
| 49 | $institution = $user_entity->institution; |
|
| 50 | $department = ($institution == 'university') ? $user_entity->university : ($institution == 'college' ? $user_entity->college : $user_entity->highschool); |
|
| 51 | ||
| 52 | // otherwise if user is provincial employee |
|
| 53 | } elseif ($userType == 'provincial') { |
|
| 54 | $provObj = elgg_get_entities(array( |
|
| 55 | 'type' => 'object', |
|
| 56 | 'subtype' => 'provinces', |
|
| @@ 130-135 (lines=6) @@ | ||
| 127 | $department = $federal_departments[$userObj->federal]; |
|
| 128 | ||
| 129 | // otherwise if user is student or academic |
|
| 130 | } elseif ($userType == 'student' || $userType == 'academic') { |
|
| 131 | $institution = $userObj->institution; |
|
| 132 | $department = ($institution == 'university') ? $userObj->university : $userObj->college; |
|
| 133 | ||
| 134 | // otherwise if user is provincial employee |
|
| 135 | } elseif ($userType == 'provincial') { |
|
| 136 | $provObj = elgg_get_entities(array( |
|
| 137 | 'type' => 'object', |
|
| 138 | 'subtype' => 'provinces', |
|