lesemethode für file angepasst
This commit is contained in:
@@ -69,13 +69,10 @@ class CC100_HW extends IPSModule
|
|||||||
|
|
||||||
private function readAndConvertToBools($filePath)
|
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
|
// Inhalt der Datei auslesen
|
||||||
$content = file_get_contents($filePath);
|
$content = @file_get_contents($filePath);
|
||||||
|
|
||||||
if ($content === false) {
|
if ($content === false) {
|
||||||
throw new Exception("Fehler beim Lesen der Datei $filePath.");
|
throw new Exception("Fehler beim Lesen der Datei $filePath.");
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.153",
|
"version": "0.154",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user