Skip to content

Commit fa839c1

Browse files
authored
Merge pull request #3145 from jeedom/zoic21-patch-8
Fix 500 error on delete of some device
2 parents 64018bc + 1fa2b6c commit fa839c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/ajax/eqLogic.ajax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@
425425
}
426426
if (count($cmdData['node']) > 0) {
427427
foreach ($cmdData['node'] as $name => $data) {
428-
if (cmd::byId(str_replace('cmd', '', $data['id']))->getEqLogic_id() == $eqLogic->getId()) {
428+
if (is_object(cmd::byId(str_replace('cmd', '', $data['id']))) && cmd::byId(str_replace('cmd', '', $data['id']))->getEqLogic_id() == $eqLogic->getId()) {
429429
continue;
430430
}
431431

0 commit comments

Comments
 (0)