diff --git a/application/controllers/Customers.php b/application/controllers/Customers.php index d88459d37..51b3ec13e 100644 --- a/application/controllers/Customers.php +++ b/application/controllers/Customers.php @@ -1,6 +1,5 @@ input->post('ids'); - - if($people_to_email!=false) - { - $mailto_url='mailto:'; - foreach($this->Person->get_multiple_info($people_to_email)->result() as $person) - { - $mailto_url.=$person->email.','; - } - //remove last comma - $mailto_url=substr($mailto_url,0,strlen($mailto_url)-1); - - echo $mailto_url; - exit; - } - echo '#'; - } - /* Gives search suggestions based on what is being searched for */ diff --git a/application/controllers/Suppliers.php b/application/controllers/Suppliers.php index 58d3c492d..7553a1349 100644 --- a/application/controllers/Suppliers.php +++ b/application/controllers/Suppliers.php @@ -1,6 +1,5 @@ \ No newline at end of file diff --git a/application/helpers/table_helper.php b/application/helpers/table_helper.php index faea6ae51..c0c303d72 100644 --- a/application/helpers/table_helper.php +++ b/application/helpers/table_helper.php @@ -171,7 +171,7 @@ function get_person_data_row($person, $controller) { 'id' => $person->person_id, 'last_name' => character_limiter($person->last_name,13), 'first_name' => character_limiter($person->first_name,13), - 'email' => mailto($person->email,character_limiter($person->email,22)), + 'email' => empty($person->email) ? '' : mailto($person->email,character_limiter($person->email,22)), 'phone_number' => character_limiter($person->phone_number,13), 'messages' => anchor("Messages/view/$person->person_id", '', array('class'=>"modal-dlg modal-btn-submit", 'title'=>$CI->lang->line('messages_sms_send'))), diff --git a/application/views/partial/footer.php b/application/views/partial/footer.php index b2cdfd0d5..8b8c7a920 100644 --- a/application/views/partial/footer.php +++ b/application/views/partial/footer.php @@ -3,12 +3,12 @@