diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-25 17:53:44 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-25 17:53:44 +0200 |
commit | 0efeef6b6693d62675ec8a45e73c71f69e0a0362 (patch) | |
tree | 4b86b3bd62217fc4c60e2827e30a45209ce82605 /app/class/Dbitem.php | |
parent | bd16dc7c6fc630a6b59ca3b041dde146ab50c72b (diff) | |
parent | 385b3f4adf86606e03941171c136d8f2eb2b35c2 (diff) | |
download | wcms-0efeef6b6693d62675ec8a45e73c71f69e0a0362.tar.gz wcms-0efeef6b6693d62675ec8a45e73c71f69e0a0362.zip |
Merge branch master with implement-exception
Diffstat (limited to 'app/class/Dbitem.php')
-rw-r--r-- | app/class/Dbitem.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/class/Dbitem.php b/app/class/Dbitem.php index 44dec2c..29f7a2c 100644 --- a/app/class/Dbitem.php +++ b/app/class/Dbitem.php @@ -11,7 +11,7 @@ abstract class Dbitem extends Item public function dry() { $array = []; - foreach ($this as $var => $value) { + foreach (get_object_vars($this) as $var => $value) { if ($value instanceof DateTime || $value instanceof DateTimeImmutable) { $array[$var] = $this->$var('string'); } else { |