From 73d403ec4dca378c527599df5fe151f890921e98 Mon Sep 17 00:00:00 2001 From: whitevast Date: Tue, 25 Jun 2024 11:13:24 +0800 Subject: [PATCH] PHP8 fixes --- modules/yandexhome/server.php | 1 + modules/yandexhome/yandexhome.class.php | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/yandexhome/server.php b/modules/yandexhome/server.php index 5831722..9638382 100644 --- a/modules/yandexhome/server.php +++ b/modules/yandexhome/server.php @@ -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']; diff --git a/modules/yandexhome/yandexhome.class.php b/modules/yandexhome/yandexhome.class.php index 52647aa..94fa9ec 100644 --- a/modules/yandexhome/yandexhome.class.php +++ b/modules/yandexhome/yandexhome.class.php @@ -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'] . '
'; }