mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 21:48:41 +00:00
Fix path
This commit is contained in:
parent
67490f42e6
commit
adf83f0867
|
|
@ -85,7 +85,7 @@ final class InfoManager
|
||||||
throw new PathException($this->path);
|
throw new PathException($this->path);
|
||||||
}
|
}
|
||||||
|
|
||||||
$contents = \file_get_contents($this->path . '/info.json');
|
$contents = \file_get_contents($this->path);
|
||||||
$info = \json_decode($contents === false ? '[]' : $contents, true);
|
$info = \json_decode($contents === false ? '[]' : $contents, true);
|
||||||
$this->info = $info === false ? [] : $info;
|
$this->info = $info === false ? [] : $info;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user