Skip to content

Commit

Permalink
Merge pull request #722 from nilsonLazarin/saude240918
Browse files Browse the repository at this point in the history
Saude240918
  • Loading branch information
FlameOff authored Sep 20, 2024
2 parents decc64d + cbb3644 commit 6ef2aee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion html/saude/intercorrencia_visualizar.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
require_once '../../controle/AvisoNotificacaoControle.php';

$conexao = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
$id_pessoa = $_SESSION['id_pessoa'];
$id_pessoa = mysqli_real_escape_string($conexao, $_SESSION['id_pessoa']);
$resultado = mysqli_query($conexao, "SELECT * FROM funcionario WHERE id_pessoa=$id_pessoa");
if (!is_null($resultado)) {
$id_cargo = mysqli_fetch_array($resultado);
Expand Down
3 changes: 2 additions & 1 deletion html/saude/listar_historico_pacientes.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
require_once($config_path);
}
$conexao = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
$id_pessoa = $_SESSION['id_pessoa'];
$id_pessoa = mysqli_real_escape_string($conexao, $_SESSION['id_pessoa']);
$resultado = mysqli_query($conexao, "SELECT * FROM funcionario WHERE id_pessoa=$id_pessoa");

if(!is_null($resultado)){
$id_cargo = mysqli_fetch_array($resultado);
if(!is_null($id_cargo)){
Expand Down

0 comments on commit 6ef2aee

Please sign in to comment.