diff --git a/upgrade/data/db_schema.json b/upgrade/data/db_schema.json index 0e4fc82f..0c5a0779 100644 --- a/upgrade/data/db_schema.json +++ b/upgrade/data/db_schema.json @@ -99553,6 +99553,17 @@ "Privileges": "select,insert,update,references", "Comment": "" }, + { + "Field": "getestet", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, { "Field": "bearbeiter", "Type": "varchar(32)", diff --git a/www/pages/shopimporter_shopify.php b/www/pages/shopimporter_shopify.php index 1cb29d45..62b5cd7d 100644 --- a/www/pages/shopimporter_shopify.php +++ b/www/pages/shopimporter_shopify.php @@ -230,10 +230,14 @@ class Shopimporter_Shopify extends ShopimporterBase if(isset($this->app->User) && $this->app->User && method_exists($this->app->User, 'GetName')){ $this->bearbeiter = $this->app->DB->real_escape_string($this->app->User->GetName()); } + $einstellungen = $this->app->DB->Select("SELECT einstellungen_json FROM shopexport WHERE id = '$shopid' LIMIT 1"); - if($einstellungen){ + if(!empty($einstellungen)){ $einstellungen = json_decode($einstellungen,true); + } else { + return; } + $this->ShopifyURL=trim($einstellungen['felder']['ShopifyURL']); if(stripos($this->ShopifyURL,'http') === false){ $this->ShopifyURL = 'https://'.$this->ShopifyURL;