From: Alexander Smirnov Date: Tue, 7 May 2024 11:00:42 +0000 (+0300) Subject: ajax show check fix X-Git-Tag: 1.1~45^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=51698ea8adf7c66664b3a619a45e6c60826c2681;p=erp24_rep%2Fyii-erp24%2F.git ajax show check fix --- diff --git a/erp24/modul/bonus/ajax_bonus_history.php b/erp24/modul/bonus/ajax_bonus_history.php index 766a3f69..3b726bd9 100644 --- a/erp24/modul/bonus/ajax_bonus_history.php +++ b/erp24/modul/bonus/ajax_bonus_history.php @@ -124,7 +124,7 @@ get_bonus_balans($phone, "update"); echo' -'.$store_arr[$row["store_id"]].', '.$user_arr[$row["admin_id"]].' +'.($store_arr[$row["store_id"]]??'').', '.($user_arr[$row["admin_id"]]??'').' '.$row["name"].' Сумма покупки: '.$row["price"].''; $row["price_skidka"]=(int)$row["price_skidka"]; if(!empty($row["price_skidka"])) echo'Скидка:'.$row["price_skidka"]; diff --git a/erp24/views/bonus/ajax-show-check.php b/erp24/views/bonus/ajax-show-check.php index 964c20fc..d038f0c1 100644 --- a/erp24/views/bonus/ajax-show-check.php +++ b/erp24/views/bonus/ajax-show-check.php @@ -83,7 +83,7 @@ if(!empty($_REQUEST["id"])) { } echo''; - echo 'Итого: '.$itogo; + echo 'Итого: '. ($itogo ?? 0); }