This commit is contained in:
Lizandro Guarnizo
2026-03-16 20:35:02 -05:00
parent 5f7cc67dd9
commit 3b834bc24b
2 changed files with 3 additions and 5 deletions
+2 -1
View File
@@ -80,7 +80,8 @@ class Formulario {
}
$ok = $this->db->update('lab_formularios', $campos, 'id = ?', [$id]);
$this->log->registrar($adminId, 'formularios', 'editar', $id, $campos);
return $ok > 0;
// rowCount() = 0 cuando los datos son idénticos a los guardados (no es un error)
return true;
}
// ─────────────────────────────────────────────────────────────────────────