From f5cf63b975ac066dfc94c1d49e6dfb03cae5bff0 Mon Sep 17 00:00:00 2001 From: beu Date: Sun, 28 Apr 2019 16:49:07 +0200 Subject: [PATCH] init info_json variable as array --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index 0851f0d..7d1d0da 100644 --- a/index.php +++ b/index.php @@ -28,6 +28,7 @@ { $rnd_data = mt_rand(10000,99999); mkdir(_DATA_DIR . "/" . $rnd_data); + $info_json = array(); $info_json->expire = time() + (7 * 24 * 60 * 60); file_put_contents(_DATA_DIR . "/" . $rnd_data . "/info.json", json_encode($info_json));