Fix minori

This commit is contained in:
Pek5892 2023-11-02 17:11:07 +01:00
parent d68feee4c3
commit 8061481ddf
5 changed files with 34 additions and 34 deletions

View File

@ -109,7 +109,7 @@ switch ($op) {
'data' => date('Y-m-d'),
'idtecnico' => $idtecnico ?: 0,
'idsede' => $idsede ?: 0,
'id_categoria' => $id_categoria ?: null
'id_categoria' => $id_categoria ?: null,
]);
$id_record = $dbo->lastInsertedID();

View File

@ -38,7 +38,7 @@ if (filter('op') == 'link_impianti') {
'id_module' => $id_module,
'id_record' => $id_record,
'id_module_from' => $modulo_impianti['id'],
'id_record_from' => $matricola
'id_record_from' => $matricola,
]);
$components = $dbo->fetchArray('SELECT * FROM my_componenti WHERE id_impianto = '.prepare($matricola));