Permalink
Browse files

Update mqtt_search.inc.php

  • Loading branch information...
directman66 committed Jan 21, 2019
1 parent e611e42 commit 5ac4e114db80c917a37f854827def10bda922fb4
Showing with 2 additions and 1 deletion.
  1. +2 −1 modules/zigbee2mqtt/mqtt_search.inc.php
@@ -31,7 +31,8 @@
// $res=SQLSelect("SELECT * FROM zigbee2mqtt_devices WHERE $qry ORDER BY ".$sortby_mqtt);
//if ($this->view_mode==''||$this->view_mode=='device')
$res=SQLSelect("SELECT * FROM (select zigbee2mqtt_devices.ID DEVID, zigbee2mqtt_devices.* from zigbee2mqtt_devices )zigbee2mqtt_devices LEFT JOIN zigbee2mqtt_devices_list ON zigbee2mqtt_devices_list.zigbeeModel=zigbee2mqtt_devices.MODEL ");
// $res=SQLSelect("SELECT * FROM (select zigbee2mqtt_devices.ID DEVID, zigbee2mqtt_devices.* from zigbee2mqtt_devices )zigbee2mqtt_devices LEFT JOIN zigbee2mqtt_devices_list ON zigbee2mqtt_devices_list.zigbeeModel like '%'||zigbee2mqtt_devices.MODEL||'%' ");
$res=SQLSelect('SELECT * FROM (select zigbee2mqtt_devices.ID DEVID, zigbee2mqtt_devices.* from zigbee2mqtt_devices )zigbee2mqtt_devices LEFT JOIN zigbee2mqtt_devices_list ON zigbee2mqtt_devices_list.zigbeeModel like CONCAT("%",zigbee2mqtt_devices.MODEL,"%") ');
if ($res[0]['ID']) {
if (!$out['TREE']) {

0 comments on commit 5ac4e11

Please sign in to comment.