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));
@ -54,7 +54,7 @@ if (filter('op') == 'link_impianti') {
if (!in_array($matricola, $matricole_old)) {
$dbo->query('INSERT INTO my_impianti_interventi(idimpianto, idintervento) VALUES('.prepare($matricola).', '.prepare($id_record).')');
$checks_impianti = $dbo->fetchArray('SELECT * FROM zz_checks WHERE id_module = '.prepare( $modulo_impianti['id']).' AND id_record = '.prepare($matricola));
$checks_impianti = $dbo->fetchArray('SELECT * FROM zz_checks WHERE id_module = '.prepare($modulo_impianti['id']).' AND id_record = '.prepare($matricola));
foreach ($checks_impianti as $check_impianto) {
$id_parent_new = null;
if ($check_impianto['id_parent']) {

View File

@ -233,7 +233,7 @@ switch (post('op')) {
'idimpianto' => $impianto,
]);
$checks_impianti = $dbo->fetchArray('SELECT * FROM zz_checks WHERE id_module = '.prepare( $modulo_impianti['id']).' AND id_record = '.prepare($impianto));
$checks_impianti = $dbo->fetchArray('SELECT * FROM zz_checks WHERE id_module = '.prepare($modulo_impianti['id']).' AND id_record = '.prepare($impianto));
foreach ($checks_impianti as $check_impianto) {
$id_parent_new = null;
if ($check_impianto['id_parent']) {

View File

@ -44,7 +44,7 @@ class SelectHandler implements HandlerInterface
if (in_array('multiple', $extras)) {
$values['value'] = explode(',', $values['value']);
} else {
$values['value'] = (array)$values['value'];
$values['value'] = (array) $values['value'];
}
if (count($values['value']) === 1 && strlen($values['value'][0]) === 0) {