From cea923a1e82a7e8ce696418c3a5a0f7703871101 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 11 Nov 2018 19:20:30 +0100 Subject: correct-basepath --- app/class/art2.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/class/art2.php') diff --git a/app/class/art2.php b/app/class/art2.php index 867b17a..3ba23cb 100644 --- a/app/class/art2.php +++ b/app/class/art2.php @@ -44,14 +44,14 @@ class Art2 // _____________________________________________________ F U N ____________________________________________________ - public function __construct($donnees) + public function __construct($datas = []) { - $this->hydrate($donnees); + $this->hydrate($datas); } - public function hydrate($donnees) + public function hydrate($datas) { - foreach ($donnees as $key => $value) { + foreach ($datas as $key => $value) { $method = 'set' . $key; if (method_exists($this, $method)) { -- cgit v1.2.3