Skip to content

Commit

Permalink
Update cmd.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Phpvarious authored Nov 21, 2024
1 parent eed49e9 commit 0a1e553
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/class/cmd.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1134,10 +1134,12 @@ public function remove() {
viewData::removeByTypeLinkId('cmd', $this->getId());
dataStore::removeByTypeLinkId('cmd', $this->getId());
$eqLogic = $this->getEqLogic();
$eqLogic->setStatus(array(
'warning' => 0,
'danger' => 0,
));
if (is_object($eqLogic)) {
$eqLogic->setStatus(array(
'warning' => 0,
'danger' => 0,
));
}
$this->emptyHistory();
cache::delete('cmdCacheAttr' . $this->getId());
cache::delete('cmd' . $this->getId());
Expand Down

0 comments on commit 0a1e553

Please sign in to comment.