fix: [tool] fix unitialized var when no SG exist
parent
d3f08205fb
commit
24fb241dad
|
@ -1032,6 +1032,7 @@ class MispConnector extends CommonConnectorTools
|
||||||
$data = $response->getJson();
|
$data = $response->getJson();
|
||||||
$temp = $this->getSharingGroups();
|
$temp = $this->getSharingGroups();
|
||||||
$existingOrgs = [];
|
$existingOrgs = [];
|
||||||
|
$existingSGs = [];
|
||||||
foreach ($temp as $k => $v) {
|
foreach ($temp as $k => $v) {
|
||||||
$existingSGs[$v['uuid']] = $v;
|
$existingSGs[$v['uuid']] = $v;
|
||||||
unset($temp[$k]);
|
unset($temp[$k]);
|
||||||
|
|
Loading…
Reference in New Issue