fix php syntax

This commit is contained in:
Beu 2019-04-28 16:43:14 +02:00
parent 4a2ceafd52
commit e49b58a1be
2 changed files with 4 additions and 2 deletions

4
.gitignore vendored
View File

@ -1 +1,3 @@
/conf/config.php /conf/config.php
/data/*
!/data/.gitkeep

View File

@ -7,7 +7,7 @@
foreach ($data_dir as $data_dir_content) foreach ($data_dir as $data_dir_content)
{ {
$data_conf = json_decode(file_get_contents(_DATA_DIR . "/" . $data_dir_content . "/info.json"),true); $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); $i = new DirectoryIterator(_DATA_DIR . "/" . $data_dir_content);
foreach($i as $f) { foreach($i as $f) {