fix type of info_json

This commit is contained in:
Beu 2019-04-28 17:00:44 +02:00
parent f5cf63b975
commit 8252be8fed

View File

@ -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));