|
@@ 343-346 (lines=4) @@
|
| 340 |
|
$roles = array(); |
| 341 |
|
for($i = 0; $i < $count; $i++) |
| 342 |
|
{ |
| 343 |
|
if(isset($entities[$i]['status']) && ($entities[$i]['status'] === 'filled' || $entities[$i]['status'] === 'pending')) |
| 344 |
|
{ |
| 345 |
|
continue; |
| 346 |
|
} |
| 347 |
|
if(!isset($roles[$entities[$i]['roleID']])) |
| 348 |
|
{ |
| 349 |
|
$roles[$entities[$i]['roleID']] = new \VolunteerRole($entities[$i]['roleID']); |
|
@@ 390-394 (lines=5) @@
|
| 387 |
|
$uuid = $this->genUUID(); |
| 388 |
|
for($i = 0; $i < $count; $i++) |
| 389 |
|
{ |
| 390 |
|
if(isset($entities[$i]['status']) && ($entities[$i]['status'] === 'filled' || $entities[$i]['status'] === 'pending')) |
| 391 |
|
{ |
| 392 |
|
$entities[$i] = false; |
| 393 |
|
continue; |
| 394 |
|
} |
| 395 |
|
if((string)$entities[$i]['_id'] === (string)new \MongoDB\BSON\ObjectId($myShift)) |
| 396 |
|
{ |
| 397 |
|
$entities[$i]['participant'] = $this->user->uid; |