Clean up errors when trying to update warning lists

pull/5911/head
Jason Kendall 2020-05-15 12:26:06 -04:00
parent c1e2a5479a
commit aa0b79925b
1 changed files with 1 additions and 1 deletions

View File

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