found and resolved issues in database layer, thanks to report in #42

This commit is contained in:
El RIDO
2015-10-16 23:13:36 +02:00
parent 87b41a0c3d
commit b92b38cee8
3 changed files with 15 additions and 17 deletions

View File

@@ -340,10 +340,7 @@ class zerobin
if ($paste->exists())
{
// The paste itself is the first in the list of encrypted messages.
$messages = array_merge(
array($paste->get()),
$paste->getComments()
);
$messages = array_merge(array($paste->get()), $paste->getComments());
$this->_data = json_encode($messages);
}
else