Index: src/system/classes/orders/SendOrderProcess.inc.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- src/system/classes/orders/SendOrderProcess.inc.php (revision 497383e4a0203fe142b598f29a74c632b9d29781) +++ src/system/classes/orders/SendOrderProcess.inc.php (revision ) @@ -60,20 +60,29 @@ if (gm_get_conf('ATTACH_CONDITIONS_OF_USE_IN_ORDER_CONFIRMATION') == 1) { $coo_shop_content_control->set_content_group('3'); - $t_mail_attachment_array[] = $coo_shop_content_control->get_file(); + $t_attachment = $coo_shop_content_control->get_file(); + if($t_attachment!==false) { + $t_mail_attachment_array[] = $t_attachment; - } + } + } if(gm_get_conf('ATTACH_WITHDRAWAL_INFO_IN_ORDER_CONFIRMATION') == '1') { $coo_shop_content_control->set_content_group(gm_get_conf('GM_WITHDRAWAL_CONTENT_ID')); - $t_mail_attachment_array[] = $coo_shop_content_control->get_file(); + $t_attachment = $coo_shop_content_control->get_file(); + if($t_attachment!==false) { + $t_mail_attachment_array[] = $t_attachment; - } + } + } if(gm_get_conf('ATTACH_WITHDRAWAL_FORM_IN_ORDER_CONFIRMATION') == '1') { $coo_shop_content_control->set_content_group(gm_get_conf('GM_WITHDRAWAL_CONTENT_ID')); $coo_shop_content_control->set_withdrawal_form('1'); - $t_mail_attachment_array[] = $coo_shop_content_control->get_file(); + $t_attachment = $coo_shop_content_control->get_file(); + if($t_attachment!==false) { + $t_mail_attachment_array[] = $t_attachment; + } } $t_shop_content_query = xtc_db_query("SELECT \ No newline at end of file