mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +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);
|
||||
}
|
||||
|
||||
$contents = \file_get_contents($this->path . '/info.json');
|
||||
$contents = \file_get_contents($this->path);
|
||||
$info = \json_decode($contents === false ? '[]' : $contents, true);
|
||||
$this->info = $info === false ? [] : $info;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user