@@ 1037-1040 (lines=4) @@ | ||
1034 | ||
1035 | if (!empty($post_array)) { |
|
1036 | $invoice_prefix = trim($post_array['invoice_prefix']); |
|
1037 | if ($_FILES['file']['name'] == '') { |
|
1038 | $invoiceconf = $this->invoices_model->get_invoiceconf($post_array['accountid']); |
|
1039 | $file_name=($invoiceconf['logo'] != '') ? $invoiceconf['logo'] : ''; |
|
1040 | } |
|
1041 | if ($invoice_prefix == '') { |
|
1042 | $this->session->set_flashdata('astpp_notification', 'Invoice Prefix is required.'); |
|
1043 | redirect(base_url() . 'invoices/invoice_conf/'); |
@@ 621-624 (lines=4) @@ | ||
618 | $add_array = $this->input->post(); |
|
619 | $data["account_data"] = $add_array; |
|
620 | if (isset($add_array['submit'])) { |
|
621 | if ($_FILES['file']['name'] == '') { |
|
622 | $invoiceconf = $this->user_model->get_invoiceconf(); |
|
623 | $file_name=($invoiceconf['logo'] != '') ? $invoiceconf['logo'] : ''; |
|
624 | } |
|
625 | if (isset($_FILES['file']['name']) && $_FILES['file']['name'] != '') { |
|
626 | $files = $_FILES['file']; |
|
627 | if ($files['size'] < 0) { |