From ec2edc54337fc7a4e4ca412b41e3d602e0a0fa8d Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Fri, 4 Jul 2025 19:57:12 +0300 Subject: [PATCH] =?utf8?q?[BC-278]=20=D0=9E=D1=82=D0=BF=D1=80=D0=B0=D0=B2?= =?utf8?q?=D0=BA=D0=B0=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8?= =?utf8?q?=D1=8F=20=D0=B2=20=D0=A2=D0=B5=D0=BB=D0=B5=D0=B3=D1=80=D0=B0?= =?utf8?q?=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/commands/CronController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erp24/commands/CronController.php b/erp24/commands/CronController.php index 3d6ee9f5..202ffea3 100644 --- a/erp24/commands/CronController.php +++ b/erp24/commands/CronController.php @@ -708,12 +708,12 @@ class CronController extends Controller ); if (!empty($toSend)) { - foreach ($toSend as $telegramUser) { + foreach ($toSend as $key => $telegramUser) { $messageData = []; $messageData['chat_id'] = $telegramUser['chat_id']; $messageData['phone'] = $telegramUser['phone']; $this->stdout( - "Рассылка телеграма {$toSend[0]['chat_id']} . 1 \n", + "Рассылка телеграма {$toSend[$key]['chat_id']} . 1 \n", BaseConsole::FG_GREEN ); @@ -722,7 +722,7 @@ class CronController extends Controller ])); $this->stdout( - "Рассылка телеграма {$toSend[0]['chat_id']} . 2\n", + "Рассылка телеграма {$toSend[$key]['chat_id']} . 2\n", BaseConsole::FG_GREEN ); -- 2.39.5