X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fmanage%2Fsales_kits.php;h=849564dd75c32792a44e53862c10867e29e31d84;hb=df671df0181c7b578bb75e07e581c5e9878e2aaa;hp=c8a80687dfc098d7eb6077d4b75301cedde2548a;hpb=413edb18717f1f6c19009f843465092f26f197a6;p=fa-stable.git diff --git a/inventory/manage/sales_kits.php b/inventory/manage/sales_kits.php index c8a80687..849564dd 100644 --- a/inventory/manage/sales_kits.php +++ b/inventory/manage/sales_kits.php @@ -224,8 +224,8 @@ if (get_post('item_code') == '') { if (get_post('item_code') == '') { // new kit/alias if ($Mode!='ADD_ITEM' && $Mode!='UPDATE_ITEM') { - $_POST['description'] = $props['description']; - $_POST['category'] = $props['category_id']; + $_POST['description'] = is_array($props) ? $props['description'] : ''; + $_POST['category'] = is_array($props) ? $props['category_id'] : ''; } text_row(_("Description:"), 'description', null, 50, 200); stock_categories_list_row(_("Category:"), 'category', null);