aboutsummaryrefslogtreecommitdiff
path: root/app/class/Dbitem.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/Dbitem.php')
-rw-r--r--app/class/Dbitem.php2
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 {