From 9217f2d12f2b3a535ddba9c4320af62b2fedaa6a Mon Sep 17 00:00:00 2001 From: objecttothis Date: Thu, 5 Aug 2021 15:44:52 +0400 Subject: [PATCH] Fixed missing function call This removes the function call to a function that doesn't exist anymore. The replacement does the same job in one line of code. Added comment to bring clarity to what the code is doing. --- application/controllers/Items.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/Items.php b/application/controllers/Items.php index be8093ce5..3526d9976 100644 --- a/application/controllers/Items.php +++ b/application/controllers/Items.php @@ -913,7 +913,8 @@ class Items extends Secure_Controller $is_failed_row = $this->data_error_check($row, $item_data, $allowed_stock_locations, $attribute_definition_names, $attribute_data); } - $item_data = $this->item_lib->custom_array_filter($item_data); + //Remove FALSE, NULL, '' and empty strings but keep 0 + $item_data = array_filter($item_data, 'strlen'); if(!$is_failed_row && $this->Item->save($item_data, $item_id)) {