Skip to content

Commit

Permalink
Update zigbee2mqtt.class.php
Browse files Browse the repository at this point in the history
скрываем из меню логи SLS если он не используется и его IP пуст.
  • Loading branch information
london89 authored Mar 17, 2021
1 parent 6a3ff8e commit 20cfb7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/zigbee2mqtt/zigbee2mqtt.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,12 @@ function admin(&$out) {

$this->getConfig();

$slslist =(explode(',', $this->config['SLSIP']));
if (!empty($this->config['SLSIP'])) {
$slslist =(explode(',', $this->config['SLSIP']));
} else {
$slslist=array();
}

$total = count($slslist);
for ($i = 0; $i < $total; $i++) {
$out['slsdev'][$i]['IP']=trim($slslist[$i]);
Expand Down

0 comments on commit 20cfb7e

Please sign in to comment.