Skip to content
Snippets Groups Projects
Commit 5e53cb2c authored by Nigel  Sahl's avatar Nigel Sahl
Browse files

Update index.php

parent a3254efa
No related merge requests found
...@@ -35,7 +35,6 @@ $gymsFiltered = GymService::getInstance()->getFiltered( ...@@ -35,7 +35,6 @@ $gymsFiltered = GymService::getInstance()->getFiltered(
'searching' => $searching 'searching' => $searching
] ]
); );
$gyms = $gymsFiltered['gyms'];
?> ?>
...@@ -98,7 +97,7 @@ $gyms = $gymsFiltered['gyms']; ...@@ -98,7 +97,7 @@ $gyms = $gymsFiltered['gyms'];
<?= "No Gym Found" ?> <?= "No Gym Found" ?>
<?php <?php
} }
foreach ($gyms as $gym) : foreach ($gymsFiltered['gyms'] as $gym) :
?> ?>
<div class="gym-card" id="gym-card-<?= $gym->gym_id ?>" <div class="gym-card" id="gym-card-<?= $gym->gym_id ?>"
onclick="window.location.href = '/admin/gym?gym_id=<?= $gym->gym_id ?>';"> onclick="window.location.href = '/admin/gym?gym_id=<?= $gym->gym_id ?>';">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment