Skip to content

Commit

Permalink
improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jan 19, 2024
1 parent d62921f commit 0c8a85e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/class/z2m.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,12 @@ public function preSave(){
if(version_compare(jeedom::version(), '4.4.2') < 0){
$logicalId = $this->getConfiguration('logicalId',$this->getLogicalId());
}else{
$logicalId = $this->getLogicalId();
if($this->getConfiguration('logicalId',null) !== null){
$logicalId = $this->getConfiguration('logicalId',null);
$this->setConfiguration('logicalId',null);
}else{
$logicalId = $this->getLogicalId();
}
}
if(strpos($logicalId,'json::') !== 0){
$infos = explode('::', $logicalId);
Expand Down Expand Up @@ -1144,7 +1149,6 @@ public function preSave(){
$this->setConfiguration('logicalId',null);
}
}

}

// Exécution d'une commande
Expand Down

0 comments on commit 0c8a85e

Please sign in to comment.