diff --git a/routes/web.php b/routes/web.php index 3e9e0289..c364938a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -2172,9 +2172,9 @@ function updateCreate($request) { $productLogger->addLog('', 'updatecreate: ARRIVATO ORDINE ' . $request->payment_method . ' ' . $request->status); $myidInternet = (int) $request->id; - $CodClienteInternet = $request->customer_id; + $CodClienteInternet = (int) $request->customer_id; - if ($myidInternet > 0) { + if ($CodClienteInternet > 0) { $clienteinGM = getClienteByIdCodClienteInternet($CodClienteInternet); if ($clienteinGM) { $productLogger->addLog('', 'clienteinGM: ' . json_encode($clienteinGM));