Permalink
Browse files

Merge pull request #265 from tarasfrompir/master

Update ssdp_finder.class.php
  • Loading branch information...
T-REX-XP committed Sep 5, 2018
2 parents 56ab1a9 + f25b35e commit 1b8c356af8991a91dd1f884f0f4ea0d5225613e8
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/ssdp_finder/ssdp_finder.class.php
@@ -621,7 +621,7 @@ function deleteDrivers($device_type){
if (count($devices)==1){
// удаляем методы устройства
$device = SQLSelectOne("SELECT * FROM classes WHERE TITLE LIKE 'S".$device_type."'");
$methods = SQLSelect("SELECT * FROM methods WHERE CLASS_ID='".$device['ID']."'");
//$methods = SQLSelect("SELECT * FROM methods WHERE CLASS_ID='".$device['ID']."'");
foreach ($methods as $method) {
//удаляем методы из мажордомо
if (file_exists(ROOT.'/modules/devices/S'.$device_type.'_'.$method['TITLE'].'.php')) {

0 comments on commit 1b8c356

Please sign in to comment.