This commit is contained in:
Dennis Eichhorn 2018-07-14 23:06:58 +02:00
parent 67490f42e6
commit adf83f0867

View File

@ -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;
} }