mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-09-19 12:14:50 -04:00
pass by reference, closes #858
This commit is contained in:
parent
e67972417e
commit
629f263cf5
12 changed files with 37 additions and 35 deletions
|
@ -219,7 +219,8 @@ class GoogleCloudStorage extends AbstractData
|
|||
$prefix = $this->_getKey($pasteid) . '/discussion/';
|
||||
try {
|
||||
foreach ($this->_bucket->objects(array('prefix' => $prefix)) as $key) {
|
||||
$comment = JSON::decode($this->_bucket->object($key->name())->downloadAsString());
|
||||
$data = $this->_bucket->object($key->name())->downloadAsString();
|
||||
$comment = Json::decode($data);
|
||||
$comment['id'] = basename($key->name());
|
||||
$slot = $this->getOpenSlot($comments, (int) $comment['meta']['created']);
|
||||
$comments[$slot] = $comment;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue