mirror of https://github.com/MISP/MISP
fix: authors serialization issue
parent
bdbb6991f5
commit
bf9ee1a0ca
|
@ -4,7 +4,6 @@ namespace App\Model\Table;
|
|||
|
||||
use App\Http\Exception\HttpSocketHttpException;
|
||||
use App\Lib\Tools\BackgroundJobsTool;
|
||||
use App\Lib\Tools\JsonTool;
|
||||
use App\Lib\Tools\ServerSyncTool;
|
||||
use App\Lib\Tools\SyncTool;
|
||||
use App\Lib\Tools\TmpFileTool;
|
||||
|
@ -178,11 +177,6 @@ class GalaxyClustersTable extends AppTable
|
|||
if (!isset($data['published'])) {
|
||||
$data['published'] = false;
|
||||
}
|
||||
if (!isset($data['authors'])) {
|
||||
$data['authors'] = '';
|
||||
} elseif (is_array($data['authors'])) {
|
||||
$data['authors'] = JsonTool::encode($data['authors']);
|
||||
}
|
||||
}
|
||||
|
||||
// afterFind()
|
||||
|
|
Loading…
Reference in New Issue