Skip to content

Commit

Permalink
fix: salvataggio automezzo
Browse files Browse the repository at this point in the history
  • Loading branch information
Pek5892 committed Oct 28, 2024
1 parent b55f8cd commit 8855e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/automezzi/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$descrizione = post('descrizione');

if ($dbo->fetchNum('SELECT targa FROM an_sedi WHERE targa='.prepare($targa).' AND NOT id='.prepare($id_record)) == 0) {
$query = 'UPDATE an_sedi SET targa='.prepare($targa).', descrizione='.prepare($descrizione).', nome='.prepare($nome).' WHERE id='.prepare($id_record);
$query = 'UPDATE an_sedi SET targa='.prepare($targa).', descrizione='.prepare($descrizione).', nome='.prepare($nome).', nomesede='.prepare($nome.' - '.$targa).' WHERE id='.prepare($id_record);
if ($dbo->query($query)) {
flash()->info(tr('Informazioni salvate correttamente!'));
}
Expand Down

0 comments on commit 8855e0d

Please sign in to comment.