From f27354601c105da0c51747659fd496474af485ba Mon Sep 17 00:00:00 2001 From: christian1180 <126362145+christian1180@users.noreply.github.com> Date: Sun, 5 May 2024 20:21:50 +0200 Subject: [PATCH] count korrigiert bei componets #3 Fehler korrigiert bei components und allen php Dateien, inkl. Import, diagram... --- components/HmIP-FALMOT-C12.php | 2 +- components/HmIPW-FAL24-C10.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/HmIP-FALMOT-C12.php b/components/HmIP-FALMOT-C12.php index c9a1f78..3deaf45 100644 --- a/components/HmIP-FALMOT-C12.php +++ b/components/HmIP-FALMOT-C12.php @@ -8,7 +8,7 @@ function HmIP_FALMOT_C12($component) { if (!isset($component['channels'])) $component['channels'] = "1,2,3,4,5,6,7,8,9,10,11,12"; $totalchannels = 0; $temp_channel = explode(",", $component['channels']); - for ($i = 0; $i < count($temp_channel);$i++) { + for ($i = 0; $i < count((array)$temp_channel);$i++) { $showchannel[$temp_channel[$i]] = 1; $totalchannels += 1; } diff --git a/components/HmIPW-FAL24-C10.php b/components/HmIPW-FAL24-C10.php index f98b874..85bc1ed 100644 --- a/components/HmIPW-FAL24-C10.php +++ b/components/HmIPW-FAL24-C10.php @@ -8,7 +8,7 @@ function HmIPW_FAL24_C10($component) { if (!isset($component['channels'])) $component['channels'] = "1,2,3,4,5,6,7,8,9,10"; $totalchannels = 0; $temp_channel = explode(",", $component['channels']); - for ($i = 0; $i < count($temp_channel);$i++) { + for ($i = 0; $i < count((array)$temp_channel);$i++) { $showchannel[$temp_channel[$i]] = 1; $totalchannels += 1; }