From 24fb241dad7a5a36a4bbd1fb4503b9c6120d3af4 Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Sun, 10 Dec 2023 15:22:04 +0000 Subject: [PATCH] fix: [tool] fix unitialized var when no SG exist --- src/Lib/default/local_tool_connectors/MispConnector.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Lib/default/local_tool_connectors/MispConnector.php b/src/Lib/default/local_tool_connectors/MispConnector.php index ee0705b..97734da 100644 --- a/src/Lib/default/local_tool_connectors/MispConnector.php +++ b/src/Lib/default/local_tool_connectors/MispConnector.php @@ -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]);