fix: [tool] fix unitialized var when no SG exist

pull/163/head
Christophe Vandeplas 2023-12-10 15:22:04 +00:00
parent d3f08205fb
commit 24fb241dad
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]);