From 85595e6432745b5b69dcc72c1c66c6ae62ee9f07 Mon Sep 17 00:00:00 2001 From: CyberVitexus Date: Thu, 23 Nov 2023 00:08:05 +0100 Subject: [PATCH] Handle company deleted response --- src/AbraFlexi/Company.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AbraFlexi/Company.php b/src/AbraFlexi/Company.php index fbfe319..d4bf1a5 100644 --- a/src/AbraFlexi/Company.php +++ b/src/AbraFlexi/Company.php @@ -147,6 +147,8 @@ public function rawResponseToArray(string $responseRaw, string $format) $this->nameSpace = 'winstrom'; $response = parent::rawResponseToArray($responseRaw, $format); $this->nameSpace = $nsbackup; + } elseif ($responseRaw == 'ok') { + $response = ['success' => true]; } else { $response = parent::rawResponseToArray($responseRaw, $format); }