1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-28 08:40:41 +01:00

Fix liste newsletter

This commit is contained in:
MatteoPistorello 2022-04-04 09:06:54 +02:00
parent 583ab2b425
commit c8ed7d874f

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;