Skip to content

Commit

Permalink
🐛 Correção de bug que apagava a foto padrão
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascarlos-dev committed Jan 15, 2024
1 parent 05da5e8 commit 531472a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion model/customerModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ function custumer_delete(){
$stmt = $pdo->prepare($sql_query);
$stmt->execute();
$row = $stmt->rowCount();
unlink("images/".$this->getPhoto());
//unlink("images/".$this->getPhoto());
@unlink("images/".md5($this->getCPF()).".jpg");
return $row;
}

Expand Down

0 comments on commit 531472a

Please sign in to comment.