Home load time is now 80% less

This commit is contained in:
JonatanRek 2019-09-09 21:30:35 +02:00
parent 52f526eaf1
commit 4c87116f06

View File

@ -34,12 +34,17 @@
<div class="col-md-9 main-body"> <div class="col-md-9 main-body">
<div class="label m-1"> <div class="label m-1">
doma jsou: <?php
<?php foreach ($USERS as $user) { $usersAtHome = '';
foreach ($USERS as $user) {
if ($user['at_home'] == 'true') { if ($user['at_home'] == 'true') {
echo $user['username'] . ' '; $usersAtHome .= $user['username'] . ' ';
} }
} ?> }
if ($usersAtHome != "") {
echo 'doma jsou:' . $usersAtHome;
}
?>
</div> </div>
<select class="select m-1" name="room"> <select class="select m-1" name="room">
<option value="all">All</option> <option value="all">All</option>