Skip to content

Commit

Permalink
Update alarme_IMA.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
chris94440 authored Sep 11, 2023
1 parent 371f548 commit c0b6f46
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/class/alarme_IMA.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ private function setRoomsList($imaProtectAPI){
}

private function createCmdActionOther($cmdName,$room,$pk) {
log::add('alarme_IMA', 'debug', " * createCmdActionOther : " . $cmdName . '|' . $room . '|' . $pk);
log::add('alarme_IMA', 'debug', ' * createCmdActionOther : ' . $cmdName . '|' . $room . '|' . $pk . ' for id :' . $this->getId());
$cmdActionOther = $this->getCmd(null, 'snapshot_'.$room.'_'.$pk);
if (!is_object($cmdActionOther)) {
$cmdActionOther = new alarme_IMACmd();
Expand All @@ -1026,9 +1026,8 @@ private function createCmdActionOther($cmdName,$room,$pk) {
$cmdActionOther->setTemplate('mobile','default');
$cmdActionOther->setOrder($this->getLastindexCmd());
log::add('alarme_IMA', 'debug', 'Création de la commande '.$cmdActionOther->getName().' (LogicalId : '.$cmdActionOther->getLogicalId().')');
$cmdActionOther->save();
}

$cmdActionOther->save();
}

private function getLastindexCmd() {
Expand Down

0 comments on commit c0b6f46

Please sign in to comment.