Device Sorting Fix

This commit is contained in:
GamerClassN7
2020-11-18 21:40:13 +01:00
parent 5ad11cbb10
commit 0e3f571a0d
4 changed files with 77 additions and 108 deletions

View File

@@ -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));
}