Skip to content

Commit

Permalink
prevent warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Sep 22, 2024
1 parent 39962a3 commit 4238b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/class/philipsHue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ public static function syncState($_bridge_number = 1, $_datas = null) {
if (isset($data['temperature'])) {
$eqLogic->checkAndUpdateCmd($data['id'], $data['temperature']['temperature']);
}
if (isset($data['button'])) {
if (isset($data['button']) && isset($data['button']['last_event'])) {
$eqLogic->checkAndUpdateCmd($data['id'], $data['button']['last_event']);
}
if (isset($data['contact_report'])) {
Expand Down

0 comments on commit 4238b00

Please sign in to comment.