Skip to content

Commit

Permalink
add some security
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Aug 26, 2024
1 parent b3bc407 commit 4eb7a18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/class/netatmo_security.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,14 @@ public static function refresh($_security = null) {
self::createCamera($security);
} catch (\Exception $e) {

}
if(!is_array($security) || !isset($security['homes'])){
return;
}
foreach ($security['homes'] as $home) {
if(!is_array($home) || !isset($home['id'])){
continue;
}
$home_eqLogic = eqLogic::byLogicalId($home['id'], 'netatmo');
if (!is_object($home_eqLogic)) {
continue;
Expand Down

0 comments on commit 4eb7a18

Please sign in to comment.