diff --git a/www/pages/matrixprodukt.php b/www/pages/matrixprodukt.php index ec7f9115..3b9ff5ad 100644 --- a/www/pages/matrixprodukt.php +++ b/www/pages/matrixprodukt.php @@ -379,7 +379,7 @@ class Matrixprodukt } $list = $newList; } - $oldnumber = $this->app->DB->Select("SELECT nummer FROM artikel WHERE id = (int)$json->articleId"); + $oldnumber = $this->app->DB->Select("SELECT nummer FROM artikel WHERE id = ".((int)$json->articleId)); $created = []; foreach ($list as $optionSet) { $variantId = $this->service->GetVariantIdByOptionSet($optionSet); @@ -446,4 +446,4 @@ class Matrixprodukt $this->app->YUI->TableSearch('TABOPT', 'matrixproduct_option_translations', "show", "", "", basename(__FILE__), __CLASS__); $this->app->Tpl->Parse('PAGE', "matrixprodukt_translation.tpl"); } -} \ No newline at end of file +}