diff --git a/src/Controller/ProfilController.php b/src/Controller/ProfilController.php index 2d1b473..ee866b2 100644 --- a/src/Controller/ProfilController.php +++ b/src/Controller/ProfilController.php @@ -71,7 +71,6 @@ class ProfilController extends AbstractController }catch (\Exception $e){ return $this->redirectToRoute('app_login'); } - $profil = $this->mgr->find(Profil::class, $id); if ($profil instanceof Profil) { $profil->removeFollower($this->getUser());