From d70150d237dc238980547f22c01834be52467c14 Mon Sep 17 00:00:00 2001 From: Christian Studer Date: Thu, 14 Dec 2023 14:10:58 +0100 Subject: [PATCH] fix: [upload_stix] Avoiding issues with sharing group arguments being null --- app/Model/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Model/Event.php b/app/Model/Event.php index 5b6248656..32e10f9f9 100755 --- a/app/Model/Event.php +++ b/app/Model/Event.php @@ -5936,7 +5936,7 @@ class Event extends AppModel * @throws InvalidArgumentException * @throws Exception */ - public function upload_stix(array $user, $file, $stix_version, $original_file, bool $publish, int $distribution, int $sharingGroupId, bool $galaxiesAsTags, int $clusterDistribution, int $clusterSharingGroupId, $debug = false) + public function upload_stix(array $user, $file, $stix_version, $original_file, bool $publish, int $distribution, ?int $sharingGroupId, bool $galaxiesAsTags, int $clusterDistribution, ?int $clusterSharingGroupId, $debug = false) { $scriptDir = APP . 'files' . DS . 'scripts'; if ($stix_version == '2' || $stix_version == '2.0' || $stix_version == '2.1') {