mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Device Sorting Fix
This commit is contained in:
1 parent
5ad11cbb10
commit
0e3f571a0d
4 files changed
+77
-108
No files matched your search
@@ -3,10 +3,12 @@ class DeviceManager{
|
||||
public static $devices;
|
||||
|
||||
static function getAllDevices () {
|
||||
return Db::loadAll ("SELECT devices.* FROM devices
|
||||
return Db::loadAll ("SELECT * FROM devices
|
||||
WHERE approved != ?", Array(2));
|
||||
}
|
||||
|
||||
|
||||
|
||||
static function getAllDevicesInRoom ($roomId = "") {
|
||||
return Db::loadAll ("SELECT * FROM devices WHERE room_id = ? AND approved != ?", Array($roomId, 2));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user