mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Fix premature iterator closure error in Wall.getMyNotes
This commit is contained in:
parent
070ea16536
commit
5ca9e2808c
1 changed files with 3 additions and 2 deletions
|
@ -76,10 +76,11 @@ class Wall implements Handler
|
|||
|
||||
function getMyNotes(callable $resolve, callable $reject)
|
||||
{
|
||||
$myNotes = $this->notes->getUserNotes($this->user, 1, $this->notes->getUserNotesCount($this->user));
|
||||
$count = $this->notes->getUserNotesCount($this->user);
|
||||
$myNotes = $this->notes->getUserNotes($this->user, 1, $count);
|
||||
|
||||
$arr = [
|
||||
"count" => sizeof($myNotes),
|
||||
"count" => $count,
|
||||
"closed" => $this->user->getPrivacySetting("notes.read"),
|
||||
"items" => [],
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue