From 5c3599565bff9450641cdf97fa0c94a6f0ebad33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hauke=20Z=C3=BChl?= Date: Sat, 7 Mar 2020 16:37:03 +0100 Subject: [PATCH] Fixed minor errors --- php/muell.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php/muell.php b/php/muell.php index 37f11e5..0c4c991 100755 --- a/php/muell.php +++ b/php/muell.php @@ -18,7 +18,7 @@ * tgBotOwner: */ -function worker(string $response) +function worker(string $response, array $config) { $tomorrow = (new DateTime('tomorrow'))->format('d.m.Y'); $trashArr = str_getcsv($response, "\n"); @@ -99,10 +99,10 @@ if ($response !== false) { file_put_contents($muellFile, $response); // Go on with checking the result data - worker($response); + worker($response, $config); } else { if (file_exists($muellFile)) { - worker(file_get_contents($muellFile)); + worker(file_get_contents($muellFile), $config); } else { shell_exec(sprintf("echo Müllbot konnte keine Daten empfangen | %s -u %d", $config['pathBot'], $config['tgBotOwner'])); }