mirror of https://github.com/MISP/MISP
Clean up errors when trying to update warning lists
parent
c1e2a5479a
commit
aa0b79925b
|
@ -49,7 +49,7 @@ class Warninglist extends AppModel
|
|||
public function update()
|
||||
{
|
||||
$directories = glob(APP . 'files' . DS . 'warninglists' . DS . 'lists' . DS . '*', GLOB_ONLYDIR);
|
||||
$updated = array();
|
||||
$updated = array('success' => [], 'fails' => []);
|
||||
foreach ($directories as $dir) {
|
||||
$file = new File($dir . DS . 'list.json');
|
||||
$list = json_decode($file->read(), true);
|
||||
|
|
Loading…
Reference in New Issue