diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-11 19:20:30 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-11 19:20:30 +0100 |
commit | cea923a1e82a7e8ce696418c3a5a0f7703871101 (patch) | |
tree | ee2b38865867119a682cb1f97a40522e2bf0f03d /app/class/art2.php | |
parent | 45903fe3960b65d63f70188640630c895dbbe222 (diff) | |
download | wcms-cea923a1e82a7e8ce696418c3a5a0f7703871101.tar.gz wcms-cea923a1e82a7e8ce696418c3a5a0f7703871101.zip |
correct-basepath
Diffstat (limited to 'app/class/art2.php')
-rw-r--r-- | app/class/art2.php | 8 |
1 files changed, 4 insertions, 4 deletions
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)) { |