From 4b92b1b08d1b7b78ed936fb9f5904d666dc92c10 Mon Sep 17 00:00:00 2001 From: Christopher Latza Date: Sun, 7 Jun 2020 18:37:40 +0200 Subject: [PATCH] convert json file to array --- start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.php b/start.php index d8572ec..2ebfd40 100644 --- a/start.php +++ b/start.php @@ -22,7 +22,7 @@ while(TRUE) copy($fileName, "tmp/rtmp/".$fileName); unlink($fileName); - $jsonMessage = json_decode(file_get_contents("message.json")); + $jsonMessage = json_decode(file_get_contents("message.json"), TRUE); $jsonMessage['embeds']['description'] = str_replace("%%adresse%%", $StreamURL, $jsonMessage['embeds']['description']); $jsonMessage['embeds']['image'] = "https://files.clatza.dev/tmp/rtmp/".$fileName;