mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 09:00:25 +00:00
Fix index of known networks
Index now stored in the network array
This commit is contained in:
parent
8778d225ac
commit
7df8f68621
1 changed files with 3 additions and 2 deletions
|
@ -14,12 +14,11 @@
|
|||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php $index = 0; ?>
|
||||
|
||||
<?php if (!empty($connected)): ?>
|
||||
<h4 class="h-underlined my-3"><?php echo _("Connected") ?></h4>
|
||||
<div class="card-grid">
|
||||
<?php foreach ($connected as $network) : ?>
|
||||
<?php $index = isset($network['index']) ? $network['index'] : -1; ?>
|
||||
<?php echo renderTemplate("wifi_stations/network", compact('network', 'index')) ?>
|
||||
<?php $index++; ?>
|
||||
<?php endforeach ?>
|
||||
|
@ -30,6 +29,7 @@
|
|||
<h4 class="h-underlined my-3"><?php echo _("Known") ?></h4>
|
||||
<div class="card-grid">
|
||||
<?php foreach ($known as $network) : ?>
|
||||
<?php $index = isset($network['index']) ? $network['index'] : -1; ?>
|
||||
<?php echo renderTemplate("wifi_stations/network", compact('network', 'index')) ?>
|
||||
<?php $index++; ?>
|
||||
<?php endforeach ?>
|
||||
|
@ -40,6 +40,7 @@
|
|||
<h4 class="h-underlined my-3"><?php echo _("Nearby") ?></h4>
|
||||
<div class="card-grid">
|
||||
<?php foreach ($nearby as $network) : ?>
|
||||
<?php $index = isset($network['index']) ? $network['index'] : -1; ?>
|
||||
<?php echo renderTemplate("wifi_stations/network", compact('network', 'index')) ?>
|
||||
<?php $index++; ?>
|
||||
<?php endforeach ?>
|
||||
|
|
Loading…
Reference in a new issue