@@ -47,10 +47,10 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | for($i = 0; $i < $certCount; $i++) |
| 49 | 49 | { |
| 50 | - if($this->certCheck($requirements, $userCerts, $certs[$i]['certID'])) |
|
| 51 | - { |
|
| 52 | - return array('whyClass' => 'CERT', 'whyMsg' => 'Shift requires '.$certs[$i]['name'].' and you do not have that certification'); |
|
| 53 | - } |
|
| 50 | + if($this->certCheck($requirements, $userCerts, $certs[$i]['certID'])) |
|
| 51 | + { |
|
| 52 | + return array('whyClass' => 'CERT', 'whyMsg' => 'Shift requires '.$certs[$i]['name'].' and you do not have that certification'); |
|
| 53 | + } |
|
| 54 | 54 | } |
| 55 | 55 | return true; |
| 56 | 56 | } |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | $tmp = $dataTable->read(); |
| 189 | 189 | foreach($tmp as $role) |
| 190 | 190 | { |
| 191 | - $roles[$role['short_name']] = $role; |
|
| 191 | + $roles[$role['short_name']] = $role; |
|
| 192 | 192 | } |
| 193 | 193 | } |
| 194 | 194 | $shift = new \VolunteerShift(false, $entry); |