From bfa4d744a3144310e84c76bf4bd091f94f437e3d Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 7 Feb 2025 16:17:42 +0300 Subject: [PATCH] =?utf8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0?= =?utf8?q?=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/modul/bonus/ajax_bonus_history.php | 2 +- erp24/services/TelegramService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/modul/bonus/ajax_bonus_history.php b/erp24/modul/bonus/ajax_bonus_history.php index 8f910ac4..79f83a94 100644 --- a/erp24/modul/bonus/ajax_bonus_history.php +++ b/erp24/modul/bonus/ajax_bonus_history.php @@ -75,7 +75,7 @@ $nal=0; $paym_txt=''; foreach($paym as $kl =>$arrr) { if($arrr["type"]=="Наличные") $nal=1; - $paym_txt .='1) Тип: '.$arrr["type"].' '.$arrr["terminal"].' Сумма:'.$arrr["summ"].'
'; + $paym_txt .='1) Тип: '.$arrr["type"].' '.($arrr["terminal"] ?? '').' Сумма:'.$arrr["summ"].'
'; } diff --git a/erp24/services/TelegramService.php b/erp24/services/TelegramService.php index 7db12d6a..ad5910ff 100644 --- a/erp24/services/TelegramService.php +++ b/erp24/services/TelegramService.php @@ -41,7 +41,7 @@ class TelegramService public static function isDevEnv(): bool { - return getenv('APP_ENV') === 'development' || $_ENV['APP_ENV'] == 'development'; + return getenv('APP_ENV') === 'development' || ($_ENV['APP_ENV'] ?? 'development') == 'development'; } -- 2.39.5