From dfade6720f3b3ae7d6e2458899be7000450a14a9 Mon Sep 17 00:00:00 2001 From: fomichev Date: Mon, 20 Jan 2025 19:31:09 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0?= =?utf8?q?=20=D0=B1=D0=BE=D0=BD=D1=83=D1=81=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/commands/CronController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/commands/CronController.php b/erp24/commands/CronController.php index e560d70c..feadf7d9 100644 --- a/erp24/commands/CronController.php +++ b/erp24/commands/CronController.php @@ -331,7 +331,7 @@ class CronController extends Controller ->andWhere(['tip_sale' => 'target']) ->andWhere(['date_start' => $kogortDate]) ->one(); - if ($userBonusExist) { + if (!$userBonusExist) { $userBonus4 = new UsersBonus(); $userBonus4->phone = '' . $phone; $userBonus4->name = $name; -- 2.39.5