Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jan 19, 2024
1 parent 7ec5ea2 commit a7249ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/class/z2m.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1150,13 +1150,14 @@ public function execute($_options = array()) {
break;
}
if(version_compare(jeedom::version(), '4.4.2') < 0){
$logicalId = $this->getConfiguration('logicalId',str_replace(array_keys($replace), $replace, $this->getLogicalId()));
$logicalId = $this->getConfiguration('logicalId',$this->getLogicalId());
}else{
$logicalId = $this->getLogicalId();
}

$subTopic = $this->getConfiguration('subPayload');
if(strpos($logicalId,'json::') === 0){
$logicalId = preg_replace( "/\"(\d+)\"/", '$1', str_replace(array_keys($replace), $replace, $logicalId));
$datas = json_decode(str_replace('json::','',$logicalId),true);
}else{
$infos = explode('::', str_replace(array_keys($replace), $replace, $logicalId));
Expand Down

0 comments on commit a7249ac

Please sign in to comment.