Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Commit

Permalink
Update ControllerUser.php
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumearnx committed Jan 22, 2022
1 parent cdd0183 commit 7bf1040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mvc/controllers/ControllerUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ private function register(): Response
$file = $this->request->getUploadedFiles()['file_img'];
if (!empty($file->getClientFilename())) {
$extension = pathinfo($file->getClientFilename(), PATHINFO_EXTENSION);
$finfo = [$this->user->user_id, strtolower($extension)];
$finfo = [$user->user_id, strtolower($extension)];
$info = Validator::validateFile($this->container, $file, $finfo, "user");
//Si le fichier est validé
if ($info === "ok")
Expand Down

0 comments on commit 7bf1040

Please sign in to comment.