lesemethode für file angepasst
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user