Fixed: Dont throw exception when deleting a couse via api

This commit is contained in:
philipp lang 2021-11-20 01:43:00 +01:00
parent d348aea5f6
commit d96457dd33
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ class Api {
{ {
$response = $this->http()->delete(self::$url."/ica/rest/nami/mitglied-ausbildung/filtered-for-navigation/mitglied/mitglied/{$memberId}/{$courseId}"); $response = $this->http()->delete(self::$url."/ica/rest/nami/mitglied-ausbildung/filtered-for-navigation/mitglied/mitglied/{$memberId}/{$courseId}");
if (data_get($response->json(), 'success') !== true) { if ($response->json() !== null && data_get($response->json(), 'success') !== true) {
$this->exception('Course deletion failed', [], $response->json()); $this->exception('Course deletion failed', [], $response->json());
} }
} }