diff --git a/class/objet.php b/class/objet.php
index 6c6ba3b68725b0d0b7346a7e28191737209437ed..99b838ac938f243c3c219cb7db7c10a44ee777f9 100644
--- a/class/objet.php
+++ b/class/objet.php
@@ -7,7 +7,7 @@ class Objet
         $att = get_object_vars($this);
 
         for ($i=0; $i < count($att); $i++) { 
-            $this->$att[i] = $arr[i];
+            $this->{$att[i]} = $arr[$att[i]];
         }
     }