From ef10b51770f943c3f4e45a125e5aba6bc95b9885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Wed, 27 Nov 2024 15:53:40 +0100 Subject: [PATCH] =?UTF-8?q?lesemethode=20f=C3=BCr=20file=20angepasst?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CC100_HW/module.php | 7 ++----- library.json | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CC100_HW/module.php b/CC100_HW/module.php index 28bf887..f04bbf0 100644 --- a/CC100_HW/module.php +++ b/CC100_HW/module.php @@ -69,13 +69,10 @@ class CC100_HW extends IPSModule private function readAndConvertToBools($filePath) { - // Überprüfen, ob die Datei existiert und lesbar ist - if (!file_exists($filePath) || !is_readable($filePath)) { - break; - } + // Inhalt der Datei auslesen - $content = file_get_contents($filePath); + $content = @file_get_contents($filePath); if ($content === false) { throw new Exception("Fehler beim Lesen der Datei $filePath."); diff --git a/library.json b/library.json index 762e71d..11ad11b 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.153", + "version": "0.154", "build": 0, "date": 0 } \ No newline at end of file