diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 124744ae..467adc9d 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -552,7 +552,7 @@ function setOrdine($idinternet, $mode) $ordergm = AppOrder::where('IdInternet', $idinternet)->first(); - if (!$ordergm->isEmpty()) { + if ($ordergm) { $str .= getarraystr($ordergm) . "
"; // $ordergm = $ordergms[0]; // $str .= getarraystr($ordergm) . "
";