From 8252be8fed730acd6ae7f6f2e4381f46c3e8ed8b Mon Sep 17 00:00:00 2001 From: beu Date: Sun, 28 Apr 2019 17:00:44 +0200 Subject: [PATCH] fix type of info_json --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 7d1d0da..dcb24a5 100644 --- a/index.php +++ b/index.php @@ -28,7 +28,7 @@ { $rnd_data = mt_rand(10000,99999); mkdir(_DATA_DIR . "/" . $rnd_data); - $info_json = array(); + $info_json = new stdClass(); $info_json->expire = time() + (7 * 24 * 60 * 60); file_put_contents(_DATA_DIR . "/" . $rnd_data . "/info.json", json_encode($info_json));