From bfb21b42adcd5e15a599dcb85fb077b837540d17 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 16 Aug 2024 15:31:40 +0300 Subject: [PATCH] =?utf8?q?[ERP-88]=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?utf8?q?=D0=BB=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D1=83=20?= =?utf8?q?=D0=B8=D0=BD=D0=B4=D0=B5=D0=BA=D1=81=D0=B0=20=D0=BA=D0=B0=D0=BA?= =?utf8?q?=20=D0=BD=D0=B0=20=D1=84=D0=BB=D0=BE=D1=82=20=D1=82=D0=B0=D0=BA?= =?utf8?q?=20=D0=B8=20=D0=BD=D0=B0=20=D0=B8=D0=BD=D1=82?= 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 3ada8cd6..7736861a 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -184,7 +184,7 @@ class MotivationService break; } if ($storeStr) { - if (!is_float($row[0] ?? -1)) { + if (!is_float($row[0] ?? -1) && !is_int($row[0] ?? -1)) { $error = "Индекс магазина не корректен [0,0] '" . $row[0] . "'"; break; } -- 2.39.5