From 4680f659047409dddead4de8dfc16e5bc8a749fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D1=81=D1=83=D0=BF=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9=20=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B5?= =?UTF-8?q?=D0=B2=D0=B8=D1=87?= Date: Mon, 4 Mar 2024 08:09:37 +0300 Subject: [PATCH] fix send data to linkedProperty --- modules/openhasp/openhasp.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openhasp/openhasp.class.php b/modules/openhasp/openhasp.class.php index 94b6ecc..21bc149 100644 --- a/modules/openhasp/openhasp.class.php +++ b/modules/openhasp/openhasp.class.php @@ -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;