mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
People at home section Fix
This commit is contained in:
1 parent
4a87204e16
commit
97e955d382
1 file changed
+3
-5
@@ -36,12 +36,10 @@
|
||||
<div class="label m-1">
|
||||
doma jsou:
|
||||
<?php
|
||||
$keyWords = ['entered', 'connected', 'connected to'];
|
||||
foreach ($USERS as $user) {
|
||||
if (trim($user['at_home']) === "entered") {
|
||||
echo $user['username'];
|
||||
}
|
||||
if (trim($user['at_home']) === "connected to") {
|
||||
echo $user['username'];
|
||||
if (in_array(trim($user['at_home']), $keyWords)) {
|
||||
echo $user['username'] . ' ';
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user