aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--inc/changelog.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/inc/changelog.php b/inc/changelog.php
index 60c49c2ee..b96a1d43a 100644
--- a/inc/changelog.php
+++ b/inc/changelog.php
@@ -104,7 +104,12 @@ function addLogEntry($date, $id, $type=DOKU_CHANGE_TYPE_EDIT, $summary='', $extr
if (!$wasRemoved) {
$oldmeta = p_read_metadata($id);
$meta = array();
- if ($wasCreated && empty($oldmeta['persistent']['date']['created'])){
+ if (
+ $wasCreated && (
+ empty($oldmeta['persistent']['date']['created']) ||
+ $oldmeta['persistent']['date']['created'] === $created
+ )
+ ){
// newly created
$meta['date']['created'] = $created;
if ($user){