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) {