chg: [internal] Use readJsonFromFile

pull/8695/head
Jakub Onderka 2022-10-22 12:58:50 +02:00
parent 029ce6fb77
commit e20a5ae017
1 changed files with 2 additions and 2 deletions

View File

@ -577,8 +577,8 @@ class Organisation extends AppModel
static $list;
if (!$list) {
try {
$content = FileAccessTool::readFromFile(APP . '/files/misp-galaxy/clusters/country.json');
$list = $this->jsonDecode($content)['values'];
$content = FileAccessTool::readJsonFromFile(APP . '/files/misp-galaxy/clusters/country.json');
$list = $content['values'];
} catch (Exception $e) {
$this->logException("MISP Galaxy are not updated, countries will not be available.", $e, LOG_WARNING);
$list = [];