Bugfix cronjobs shopimport

This commit is contained in:
OpenXE 2024-05-27 11:42:54 +02:00
parent e19484b597
commit 042f5b5527

View File

@ -945,7 +945,7 @@ if($shops) {
{ {
$onlinebestellnummer = $tmpwarenkorb['auftrag']; $onlinebestellnummer = $tmpwarenkorb['auftrag'];
} }
$projekt = $app->DB->Select("SELECT projekt WHERE shopexport = '$id' LIMIT 1"); $projekt = $app->DB->Select("SELECT projekt FROM shopexport WHERE id = '$id' LIMIT 1");
if(!empty($tmpwarenkorb['projekt']) && $app->DB->Select("SELECT id FROM projekt WHERE id = '".(int)$tmpwarenkorb['projekt']."' LIMIT 1"))$projekt = (int)$tmpwarenkorb['projekt']; if(!empty($tmpwarenkorb['projekt']) && $app->DB->Select("SELECT id FROM projekt WHERE id = '".(int)$tmpwarenkorb['projekt']."' LIMIT 1"))$projekt = (int)$tmpwarenkorb['projekt'];
if(isset($tmpwarenkorb['subshop']) && $tmpwarenkorb['subshop']) if(isset($tmpwarenkorb['subshop']) && $tmpwarenkorb['subshop'])
{ {