@@ -419,7 +419,9 @@ |
||
| 419 | 419 | // End of very very very basic auth |
| 420 | 420 | // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 421 | 421 | |
| 422 | -else: |
|
| 422 | +else { |
|
| 423 | + : |
|
| 423 | 424 | http_response_code(401); |
| 425 | +} |
|
| 424 | 426 | |
| 425 | 427 | endif; |
@@ -114,8 +114,10 @@ |
||
| 114 | 114 | </form> |
| 115 | 115 | |
| 116 | 116 | <?php |
| 117 | - else: |
|
| 117 | + else { |
|
| 118 | + : |
|
| 118 | 119 | echo '<div class="box-body">'.$sentSuccess.'</div>'; |
| 120 | + } |
|
| 119 | 121 | endif; |
| 120 | 122 | ?> |
| 121 | 123 | </div> |
@@ -271,14 +271,17 @@ |
||
| 271 | 271 | |
| 272 | 272 | <?php endforeach; ?> |
| 273 | 273 | |
| 274 | - <?php else: ?> |
|
| 274 | + <?php else { |
|
| 275 | + : ?> |
|
| 275 | 276 | <?php // event has no roles the user can cover?> |
| 276 | 277 | |
| 277 | 278 | <div class="alert alert-warning"> |
| 278 | 279 | <h4><i class="icon fa fa-info"></i>There are no roles in the event you are skilled to cover.</h4> |
| 279 | 280 | <p>If you need adding to the rota, speak to an admin.</p> |
| 280 | 281 | </div> |
| 281 | - <?php endif; ?> |
|
| 282 | + <?php endif; |
|
| 283 | +} |
|
| 284 | +?> |
|
| 282 | 285 | |
| 283 | 286 | |
| 284 | 287 | <?php include 'includes/footer.php'; ?> |
@@ -567,7 +567,8 @@ discard block |
||
| 567 | 567 | <?php if (!$userRole->getReserve()): ?> |
| 568 | 568 | <?php $isInEvent = in_array($userRole->getId(), $usersInEvent) ?> |
| 569 | 569 | <option value="<?php echo $userRole->getId() ?>" <?php echo $isInEvent ? 'selected="selected"' : '' ?>><?php echo $userRole->getUser()->getFirstName().' '.$userRole->getUser()->getLastName() ?></option> |
| 570 | - <?php else: ?> |
|
| 570 | + <?php else { |
|
| 571 | + : ?> |
|
| 571 | 572 | <?php $countReserve += 1 ?> |
| 572 | 573 | <?php endif //!userRole->getReserve?> |
| 573 | 574 | <?php endforeach //users?> |
@@ -646,4 +647,6 @@ discard block |
||
| 646 | 647 | </div><!-- /.createSeries --> |
| 647 | 648 | |
| 648 | 649 | |
| 649 | -<?php include 'includes/footer.php'; ?> |
|
| 650 | +<?php include 'includes/footer.php'; |
|
| 651 | +} |
|
| 652 | +?> |
|
@@ -266,8 +266,10 @@ discard block |
||
| 266 | 266 | if (is_array($rotaoutput)): |
| 267 | 267 | foreach ($rotaoutput as $key => $skill): |
| 268 | 268 | $skillfinal = $skillfinal.$skill.' '; |
| 269 | - endforeach; else: |
|
| 269 | + endforeach; else { |
|
| 270 | + : |
|
| 270 | 271 | $skillfinal = $rotaoutput; |
| 272 | + } |
|
| 271 | 273 | endif; |
| 272 | 274 | $message = str_replace('[rotaoutput]', $skillfinal, $message); |
| 273 | 275 | $message = str_replace('[siteurl]', $siteurl, $message); |
@@ -445,8 +447,10 @@ discard block |
||
| 445 | 447 | $roles = []; |
| 446 | 448 | while ($roleRow = mysqli_fetch_array($roleResult, MYSQLI_ASSOC)) { |
| 447 | 449 | if (($roleRow['name'] == '') || ($roleRow['name'] == $roleRow['description'])): |
| 448 | - $roles[] = $roleRow['description']; else: |
|
| 450 | + $roles[] = $roleRow['description']; else { |
|
| 451 | + : |
|
| 449 | 452 | $roles[] = $roleRow['description'].' - '.$roleRow['name']; |
| 453 | + } |
|
| 450 | 454 | endif; |
| 451 | 455 | } |
| 452 | 456 | |
@@ -106,14 +106,17 @@ |
||
| 106 | 106 | <input type="hidden" name="action" value="unlink" /> |
| 107 | 107 | <button class="btn btn-danger">Unlink</button> |
| 108 | 108 | </form> |
| 109 | - <?php else: ?> |
|
| 109 | + <?php else { |
|
| 110 | + : ?> |
|
| 110 | 111 | <form action="#" method="post"> |
| 111 | 112 | <input type="hidden" name="id" value="<?php echo $id ?>" /> |
| 112 | 113 | <input type="hidden" name="platform" value="<?php echo $platform ?>" /> |
| 113 | 114 | <input type="hidden" name="action" value="link" /> |
| 114 | 115 | <button class="btn btn-primary">Link</button> |
| 115 | 116 | </form> |
| 116 | - <?php endif; ?> |
|
| 117 | + <?php endif; |
|
| 118 | +} |
|
| 119 | +?> |
|
| 117 | 120 | </div> |
| 118 | 121 | </div> |
| 119 | 122 | <?php endforeach; ?> |