diff --git a/model/customerModel.php b/model/customerModel.php index e7beff4..b5cdcbc 100644 --- a/model/customerModel.php +++ b/model/customerModel.php @@ -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; }