Merge pull request #134 from exciler/bugfix_shopimport

Bugfix Cronjob shopimport error with PHP8.1
This commit is contained in:
OpenXE-ERP 2024-04-07 14:35:20 +02:00 committed by GitHub
commit fb06b38a4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -945,7 +945,7 @@ if($shops) {
{
$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(isset($tmpwarenkorb['subshop']) && $tmpwarenkorb['subshop'])
{