aa
This commit is contained in:
@@ -2256,8 +2256,12 @@ Route::post('/updatecreate', function (Request $request) {
|
||||
if ($myidInternet > 0) {
|
||||
// $clients = Clientegm::where('CodClienteInternet', $CodClienteInternet)->get();
|
||||
$clients = Clientegm::where('IdInternet', $myidInternet)->first();
|
||||
// write in the console the array "$clients"
|
||||
|
||||
$productLogger->addLog('', 'Array Clienti su GM! ' . json_encode($clients) . 'con IdInternet=' . $myidInternet);
|
||||
|
||||
// se l'array non è vuoto
|
||||
if (!$clients->isEmpty()) {
|
||||
if ($clients !== null && !$clients->isEmpty()) {
|
||||
$cliente = $clients->first();
|
||||
$productLogger->addLog('', 'Ho trovato il Cliente su GM! ' . json_encode($cliente) . 'con IdInternet=' . $myidInternet);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user