Merge pull request #163 from cvandeplas/fix/SG

fix: [tool] fix uninitialised var when no SG exist
main
Andras Iklody 2023-12-20 11:45:22 +01:00 committed by GitHub
commit d4eaeed045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1032,6 +1032,7 @@ class MispConnector extends CommonConnectorTools
$data = $response->getJson();
$temp = $this->getSharingGroups();
$existingOrgs = [];
$existingSGs = [];
foreach ($temp as $k => $v) {
$existingSGs[$v['uuid']] = $v;
unset($temp[$k]);