Skip to content

Commit

Permalink
fix send data to linkedProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
Anisan authored and Исупов Андрей Николаевич committed Mar 4, 2024
1 parent c71e99e commit 65a014d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/openhasp/openhasp.class.php
Expand Up @@ -436,8 +436,8 @@ function setValue($op,$val){
$pattern = '/%([^%]+)\.([^%]+)%/';
if (preg_match($pattern, $op, $matches))
{
if (gg($matches[1].".".$matches[2]) != $val)
sg($matches[1].".".$matches[2], $val, $this->name);
if (getGlobal($matches[1].".".$matches[2]) != $val)
setGlobal($matches[1].".".$matches[2], $val, array($this->name => '0'), $this->name);
return true;
}
return false;
Expand Down

0 comments on commit 65a014d

Please sign in to comment.