From 4967de52f0526bd082bb2b07e39e75c8e161d4c4 Mon Sep 17 00:00:00 2001 From: Cem Aydin Date: Thu, 17 Oct 2024 15:28:11 +0200 Subject: [PATCH] FIX: shopware6 connector: Check API Zeigt Fehlermeldung nicht an Behebt: Fehler #718 --- SL/ShopConnector/Shopware6.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/ShopConnector/Shopware6.pm b/SL/ShopConnector/Shopware6.pm index 85bc525794..cbf70574ab 100644 --- a/SL/ShopConnector/Shopware6.pm +++ b/SL/ShopConnector/Shopware6.pm @@ -679,7 +679,7 @@ sub get_version { # 2. request version number $ret = $self->connector; - if (200 != $ret->responseCode()) { + if (!defined $ret || 200 != $ret->responseCode()) { $return->{success} = 0; $return->{data}->{version} = $self->{errors}; # whatever init puts in errors return $return;