From: Alexander Smirnov Date: Fri, 16 Aug 2024 12:31:40 +0000 (+0300) Subject: [ERP-88] Добавил проверку индекса как на флот так и на инт X-Git-Tag: 1.4~33^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=bfb21b42adcd5e15a599dcb85fb077b837540d17;p=erp24_rep%2Fyii-erp24%2F.git [ERP-88] Добавил проверку индекса как на флот так и на инт --- 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; }