From bbddbcd504183b2658919e6f285f2743e363e03d Mon Sep 17 00:00:00 2001
From: Matthieu Guffroy <mattgu74@gmail.com>
Date: Thu, 12 Jun 2014 03:37:30 +0200
Subject: [PATCH] debug

---
 class/objet.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/class/objet.php b/class/objet.php
index 6c6ba3b..99b838a 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]];
         }
     }
 
-- 
GitLab