fixing "missing" comments when they were posted during the same second

This commit is contained in:
El RIDO
2015-10-12 21:07:41 +02:00
parent 1d6cfb7f3b
commit 512b3d1172
3 changed files with 23 additions and 2 deletions

View File

@@ -181,7 +181,8 @@ class zerobin_data extends zerobin_abstract
$comment->meta->parentid = $items[2];
// Store in array
$comments[$comment->meta->postdate] = $comment;
$key = $this->getOpenSlot($comments, (int) $comment->meta->postdate);
$comments[$key] = $comment;
}
}
$dir->close();