diff --git a/core/php/AbeilleParser.php b/core/php/AbeilleParser.php
index f600f48eaf..2ad6200eee 100644
--- a/core/php/AbeilleParser.php
+++ b/core/php/AbeilleParser.php
@@ -370,7 +370,7 @@ function &getDevice($net, $addr, $ieee = null, &$new = false) {
continue; // This network has already been checked
foreach ($GLOBALS['devices'][$oldNet] as $oldAddr => $eq) {
- if ($eq['zigbee']['ieee'] !== $ieee)
+ if (!isset($eq['zigbee']['ieee']) || ($eq['zigbee']['ieee'] !== $ieee))
continue;
$GLOBALS['devices'][$net][$addr] = $eq; // net & addr update
diff --git a/desktop/modal/AbeilleHealth.modal.php b/desktop/modal/AbeilleHealth.modal.php
index 34d8ea0085..ca5a04d917 100644
--- a/desktop/modal/AbeilleHealth.modal.php
+++ b/desktop/modal/AbeilleHealth.modal.php
@@ -131,11 +131,11 @@ function refreshHealth() {
console.log("net="+net+" => gtwId="+gtwId+", color="+netColor);
n = equipments[net];
parentBridge = equipments[net]['0000'];
- bridgeEnabled = parentBridge.isEnabled;
+ gtwEnabled = parentBridge.isEnabled;
for (addr in n) {
// console.log("LA2 addr=", addr);
e = n[addr];
- if ((e.isEnabled == 0) || (bridgeEnabled == 0)) { // Equipment disabled or its parent bridge ?
+ if ((e.isEnabled == 0) || (gtwEnabled == 0)) { // Equipment disabled or its parent bridge ?
dis1 = '';
dis2 = '';
} else {
@@ -175,7 +175,7 @@ function refreshHealth() {
// Status: Updated every minutes by cron() (see Abeille.class.php)
if (e.isEnabled == 0) // Disabled ?
status = '{{Désactivé}}';
- else if (bridgeEnabled == 0) // Parent bridge disabled ?
+ else if (gtwEnabled == 0) // Parent bridge disabled ?
status = '{{BR désactivé}}';
else if (addr.substr(2) == "rc") // Remote control ?
status = '-';
@@ -217,8 +217,8 @@ function refreshHealth() {
tr += '';
- // Updating gateway status if coordinator (addr 0000)
- if (addr = '0000') {
+ // Updating gateway status if coordinator (addr 0000) & enabled
+ if ((addr == '0000') && (gtwEnabled == 1)) {
let gtwSpan = document.getElementById("idGtw"+gtwId);
if (e.gtwType == 'zigate')
gtwSpan.textContent = "Zigate " + gtwId;
diff --git a/docs/fr_FR/Changelog.md b/docs/fr_FR/Changelog.md
index f1f4217beb..340f8a61cb 100644
--- a/docs/fr_FR/Changelog.md
+++ b/docs/fr_FR/Changelog.md
@@ -7,6 +7,7 @@
- Corrections: Interne: Syntaxe PHP8.
- Corrections: Interne: install.php & AbeilleTools.class.php
- Amélioration: Flasher PI Zigate: Création package standalone.
+- Correction: Page santé. Crash interne si plusieurs autre passerelles désactivées.
## 240902-BETA-1