fix php syntax
This commit is contained in:
parent
4a2ceafd52
commit
e49b58a1be
4
.gitignore
vendored
4
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
/conf/config.php
|
/conf/config.php
|
||||||
|
/data/*
|
||||||
|
!/data/.gitkeep
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user