From aa46ee1c460e84f0b762854b046a7f4feab7411c Mon Sep 17 00:00:00 2001 From: fomichev Date: Thu, 27 Feb 2025 12:24:13 +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=B8=D0=B5=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?utf8?q?=D0=BA=D0=B8=20=D1=80=D0=B0=D0=B7=D0=BC=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api2/controllers/DataController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erp24/api2/controllers/DataController.php b/erp24/api2/controllers/DataController.php index 60e821c4..667e71d1 100644 --- a/erp24/api2/controllers/DataController.php +++ b/erp24/api2/controllers/DataController.php @@ -1024,12 +1024,12 @@ class DataController extends BaseController } } - $sizeValue = null; + $sizeValue = 0; if (isset($characteristicsValues['size']) && intval($characteristicsValues['size'])) { - $sizeValue = $characteristicsValues['size']; + $sizeValue = intval($characteristicsValues['size']); } if (isset($characteristicsValues['размер']) && intval($characteristicsValues['размер'])) { - $sizeValue = $characteristicsValues['размер']; + $sizeValue = intval($characteristicsValues['размер']); } $speciesValue = null; -- 2.39.5