diff --git a/class/objet.php b/class/objet.php index 733b8008e6b315287e24b126d4a42fb1a53818d5..d64590aa44d61a357d2b13199a0b4863e5d48036 100644 --- a/class/objet.php +++ b/class/objet.php @@ -2,12 +2,12 @@ class Objet { - public function fromDb(Array) + public function fromDb($arr) { $att = get_object_vars($this) for ($i=0; $i < count($att); $i++) { - $this->$att[i] = Array[i]; + $this->$att[i] = $arr[i]; } }