From e3796c5b00fa7425b4443a9a7251344ed90cbbaf Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 26 Jul 2024 18:17:04 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/MotivationService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 8b70d555..85375e48 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -83,7 +83,7 @@ class MotivationService $error = "Не корректно название элемента '" . ($row[1] ?? '') . "' Ожидается: '" . $motivationCostsItems[$row[0]]->name . "' [$ind,1]"; break; } - if (($row[2] ?? 'NO_NAME') == 'NO_NAME') { + if ($row[2] == '' && $row[2] !== 0) { $error = "Не корректно значение элемента [$ind,2]"; break; } -- 2.39.5