Skip to content
Permalink
Browse files
Merge pull request #724 from tarasfrompir/patch-3
Update processCommand.inc.php
  • Loading branch information
sergejey committed Apr 14, 2020
2 parents d6dfa09 + 0cd68ad commit 80a8046606f8e2851447b5753953ba346da5d253
Showing 1 changed file with 2 additions and 2 deletions.
@@ -240,7 +240,7 @@
if ($location_id) {
// ищем строгое соответствие по названию и местоположению
foreach($devices as $key => $value) {
if(in_array($location_id, $value) && $devices[$key]['TITLE'] == $compare_title) {
if(in_array($location_id, $value) && strtolower($devices[$key]['TITLE']) == strtolower ($compare_title)) {
$i = $key;
$device_matched = 1;
break ;
@@ -249,7 +249,7 @@
if (!$device_matched ) {
// ищем строгое соответствие по названию
foreach($devices as $key => $value) {
if(in_array($compare_title, $value)) {
if(in_array(strtolower ($compare_title), strtolower ($value))) {
$i = $key;
$device_matched = 1;
break ;

0 comments on commit 80a8046

Please sign in to comment.