diff --git a/libraries/src/Table/Content.php b/libraries/src/Table/Content.php index 109cff6d2ec4b..51718c9e8bd29 100644 --- a/libraries/src/Table/Content.php +++ b/libraries/src/Table/Content.php @@ -330,6 +330,9 @@ public function store($updateNulls = true) // Existing item $this->modified_by = $user->get('id'); $this->modified = $date; + if (empty($this->created_by)) { + $this->created_by = 0; + } } else { // Field created_by can be set by the user, so we don't touch it if it's set. if (empty($this->created_by)) {