From 3502aa4433fb75944a7886eb43c1312e1cc5642c Mon Sep 17 00:00:00 2001 From: Grisha Pomadchin Date: Wed, 9 Jul 2014 16:39:03 +0400 Subject: [PATCH] +clear empty option arrays --- intaro.intarocrm/options.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/intaro.intarocrm/options.php b/intaro.intarocrm/options.php index 3262d127..74c4c515 100755 --- a/intaro.intarocrm/options.php +++ b/intaro.intarocrm/options.php @@ -357,14 +357,14 @@ if (isset($_POST['Update']) && ($_POST['Update'] == 'Y')) { $orderPropsArr[$orderType['ID']] = $_orderPropsArr; } - COption::SetOptionString($mid, $CRM_ORDER_TYPES_ARR, serialize($orderTypesArr)); - COption::SetOptionString($mid, $CRM_DELIVERY_TYPES_ARR, serialize($deliveryTypesArr)); - COption::SetOptionString($mid, $CRM_PAYMENT_TYPES, serialize($paymentTypesArr)); - COption::SetOptionString($mid, $CRM_PAYMENT_STATUSES, serialize($paymentStatusesArr)); - COption::SetOptionString($mid, $CRM_PAYMENT, serialize($paymentArr)); - COption::SetOptionString($mid, $CRM_ORDER_SITES, serialize($orderSites)); - COption::SetOptionString($mid, $CRM_ORDER_DISCHARGE, $orderDischarge); - COption::SetOptionString($mid, $CRM_ORDER_PROPS, serialize($orderPropsArr)); + COption::SetOptionString($mid, $CRM_ORDER_TYPES_ARR, serialize(ICrmOrderActions::clearArr($orderTypesArr))); + COption::SetOptionString($mid, $CRM_DELIVERY_TYPES_ARR, serialize(ICrmOrderActions::clearArr($deliveryTypesArr))); + COption::SetOptionString($mid, $CRM_PAYMENT_TYPES, serialize(ICrmOrderActions::clearArr($paymentTypesArr))); + COption::SetOptionString($mid, $CRM_PAYMENT_STATUSES, serialize(ICrmOrderActions::clearArr($paymentStatusesArr))); + COption::SetOptionString($mid, $CRM_PAYMENT, serialize(ICrmOrderActions::clearArr($paymentArr))); + COption::SetOptionString($mid, $CRM_ORDER_SITES, serialize(ICrmOrderActions::clearArr($orderSites))); + COption::SetOptionString($mid, $CRM_ORDER_DISCHARGE, ICrmOrderActions::clearArr($orderDischarge)); + COption::SetOptionString($mid, $CRM_ORDER_PROPS, serialize(ICrmOrderActions::clearArr($orderPropsArr))); $uri .= '&ok=Y'; LocalRedirect($uri);