Fix liste newsletter

This commit is contained in:
MatteoPistorello 2022-04-04 09:06:54 +02:00
parent 583ab2b425
commit c8ed7d874f
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class Lista extends Model
// Ricerca nuovi record
$number = $database->fetchNum($query);
$database->query('INSERT INTO em_list_receiver (id_list, record_id, record_type) '.str_replace_first('SELECT', 'SELECT '.prepare($this->id).',', $query));
$database->query('INSERT INTO em_list_receiver (id_list, record_id, record_type) '.preg_replace('/'.preg_quote('SELECT', '/').'/', 'SELECT '.prepare($this->id).',', $query, 1));
}
return $result;