Skip to content

Commit

Permalink
Merge pull request #9 from whitevast/master
Browse files Browse the repository at this point in the history
PHP8 fixes
  • Loading branch information
skysilver-lab authored Jul 4, 2024
2 parents aeaef6b + 73d403e commit 6deb838
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/yandexhome/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

include_once ('./config.php');
include_once ('./lib/loader.php');
include_once ('./load_settings.php');

$timezone = SQLSelectOne('SELECT NAME, VALUE FROM settings WHERE NAME="SITE_TIMEZONE"')['VALUE'];

Expand Down
1 change: 1 addition & 0 deletions modules/yandexhome/yandexhome.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ function search_yandexhome_devices(&$out)
}
$traits = json_decode($res[$i]['TRAITS'], true);
if (is_array($traits) && count($traits) > 0) {
$res[$i]['TRAITS_LIST'] = "";
foreach ($traits as $trait) {
$res[$i]['TRAITS_LIST'] .= $trait['type'] . '<br>';
}
Expand Down

0 comments on commit 6deb838

Please sign in to comment.