Files

10 lines
313 B
PHP
Raw Permalink Normal View History

2011-11-29 10:34:18 +00:00
<?php
foreach (dbFetchRows('SELECT * FROM `devices`,`locations` WHERE location_id = ? && devices.location_id = locations.id', [$vars['id']]) as $device) {
if ($auth || device_permitted($device['device_id'])) {
$devices[] = $device;
2020-09-21 15:40:17 +02:00
$title = $device['location'];
$auth = true;
}
2011-11-29 10:34:18 +00:00
}