Bugfix Cronjob shopimport error with PHP8.1

This commit is contained in:
Andreas Palm 2024-04-04 23:56:12 +02:00
parent bd94ac8e15
commit 39b5dc376a

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 WHERE shopexport = '$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'])
{ {