Skip to content
Snippets Groups Projects
Commit aee9d677 authored by Sergio's avatar Sergio
Browse files

fix changing domain name on mail_get records

parent 03aed0af
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ class mail_mail_domain_plugin { ...@@ -92,7 +92,7 @@ class mail_mail_domain_plugin {
} }
//* Update the mailget records //* Update the mailget records
$mail_gets = $app->db->queryAllRecords("SELECT mailget_id FROM mail_get WHERE destination LIKE '%@".$app->db->quote($page_form->oldDataRecord['domain'])."'"); $mail_gets = $app->db->queryAllRecords("SELECT mailget_id, destination FROM mail_get WHERE destination LIKE '%@".$app->db->quote($page_form->oldDataRecord['domain'])."'");
if(is_array($mail_gets)) { if(is_array($mail_gets)) {
foreach($mail_gets as $rec) { foreach($mail_gets as $rec) {
$destination = $app->db->quote(str_replace($page_form->oldDataRecord['domain'], $page_form->dataRecord['domain'], $rec['destination'])); $destination = $app->db->quote(str_replace($page_form->oldDataRecord['domain'], $page_form->dataRecord['domain'], $rec['destination']));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment