summaryrefslogtreecommitdiff
path: root/src/Model.php
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-11-29 09:35:27 +0100
committerDaniel Weipert <code@drogueronin.de>2023-11-29 09:35:27 +0100
commit3afcaef927391db23fe23c6c8c26b8960e8dae32 (patch)
tree143b9f6df9e8c795c8c6ed901bffdc7119f40df1 /src/Model.php
parentc4ce3e884a6aa527bcc138771617215cf03265a4 (diff)
intermediate commit
Diffstat (limited to 'src/Model.php')
-rw-r--r--src/Model.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Model.php b/src/Model.php
index 5f45ed4..2720486 100644
--- a/src/Model.php
+++ b/src/Model.php
@@ -9,7 +9,7 @@ class Model
$object = new $cast();
foreach (get_class_vars(get_class($original)) as $property => $_) {
- if (! empty($original->$property) && empty($object->$property)) {
+ if (isset($original->$property) && ! isset($object->$property)) {
$object->$property = $original->$property;
}
}