diff --git a/modules/liste_newsletter/actions.php b/modules/liste_newsletter/actions.php index bb8bfb393..76e195981 100755 --- a/modules/liste_newsletter/actions.php +++ b/modules/liste_newsletter/actions.php @@ -54,7 +54,7 @@ switch (filter('op')) { $query = html_entity_decode($query); } - $lista_new = Lista::where('id', '=', (new Lista())->getByField('title', $name))->orWhere('name', $name)->where('id', '!=', $id_record)->first(); + $lista_new = Lista::where('id', '=', (new Lista())->getByField('title', $name))->where('id', '!=', $id_record)->first(); if (!empty($lista_new)) { flash()->error(tr('Esiste giĆ  una lista con questo nome.'));