From 8bca8fab53b3336ed87c2c7ec0e6dd6851da8073 Mon Sep 17 00:00:00 2001 From: jekkos Date: Wed, 7 Aug 2019 00:19:12 +0200 Subject: [PATCH] Fix warning in dev mode (#2485) --- application/helpers/tabular_helper.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/application/helpers/tabular_helper.php b/application/helpers/tabular_helper.php index 723b1d2e5..ba7ff5cf5 100644 --- a/application/helpers/tabular_helper.php +++ b/application/helpers/tabular_helper.php @@ -536,8 +536,11 @@ function get_item_kit_data_row($item_kit) function parse_attribute_values($columns, $row) { $attribute_values = array(); foreach($columns as $column) { - $attribute_value = explode('|', $row[$column]); - $attribute_values = array_merge($attribute_values, $attribute_value); + if (array_key_exists($column, $row)) + { + $attribute_value = explode('|', $row[$column]); + $attribute_values = array_merge($attribute_values, $attribute_value); + } } return $attribute_values; }