1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-18 02:41:27 +02:00

fix(core): use array_merge() instead of array_replace_recursive() for entries update method

This commit is contained in:
Awilum
2020-02-09 14:27:45 +03:00
parent 8fc3c481e0
commit 8c0ed77b71

View File

@@ -449,9 +449,8 @@ class Entries
$body = Filesystem::read($entry_file);
$entry = $this->flextype['parser']->decode($body, 'frontmatter');
return Filesystem::write($entry_file, $this->flextype['parser']->encode(array_replace_recursive($entry, $data), 'frontmatter'));
return Filesystem::write($entry_file, $this->flextype['parser']->encode(array_merge($entry, $data), 'frontmatter'));
}
return false;
}