small fix

This commit is contained in:
rsgrinko committed 2021-12-06 20:51:00 +03:00
1 parent 9e63259bc4
commit 63985471ca
2 files changed
+3 -10

No files matched your search

+1 -10
View File
@@ -1,16 +1,7 @@
<?php
require_once __DIR__ . '/inc/bootstrap.php';
require_once __DIR__ . '/inc/header.php';
/*$userDevices = getUserDevices($USER['id']);
if($userDevices) {
$deviceId = $userDevices[0]['id']; // мониторим только первое устройство пользователя при наличии
} else {
$deviceId = 9; // иначе показываем демо плату
}*/
$arSensors = CIoT::getDallasArrData($USER['deviceId']);
?>
?>
<div class="row maxheight test-draggable-items control_block">
+2
View File
@@ -235,6 +235,8 @@ class CIoT {
/**
* Получаем массив с данными об устройствах
*
* @param string $limit
* @param string $sort
* @return array|bool
*/
public static function getDevices($limit = 10, $sort = 'ASC') {