From e49b58a1be62bf938382f1ab70d24e335e212f09 Mon Sep 17 00:00:00 2001 From: beu Date: Sun, 28 Apr 2019 16:43:14 +0200 Subject: [PATCH] fix php syntax --- .gitignore | 4 +++- index.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b16c889..eb0274e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -/conf/config.php \ No newline at end of file +/conf/config.php +/data/* +!/data/.gitkeep \ No newline at end of file diff --git a/index.php b/index.php index e19dc15..0851f0d 100644 --- a/index.php +++ b/index.php @@ -7,7 +7,7 @@ foreach ($data_dir as $data_dir_content) { $data_conf = json_decode(file_get_contents(_DATA_DIR . "/" . $data_dir_content . "/info.json"),true); - if ($data_conf[expire] < time()) + if ($data_conf['expire'] < time()) { $i = new DirectoryIterator(_DATA_DIR . "/" . $data_dir_content); foreach($i as $f) {