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

@@ -378,7 +378,7 @@ class zerobin_db extends zerobin_abstract
{
foreach ($rows as $row)
{
$i = (int) $row['postdate'];
$i = $this->getOpenSlot($comments, (int) $row['postdate']);
$comments[$i] = clone $commentTemplate;
$comments[$i]->data = $row['data'];
$comments[$i]->meta->nickname = $row['nickname'];