mirror of
https://github.com/openvk/openvk
synced 2025-06-07 06:57:00 +03:00
fix: undefined fields
This commit is contained in:
parent
6e87ac3e38
commit
53115cb946
2 changed files with 1 additions and 2 deletions
|
@ -37,7 +37,6 @@ final class Gifts extends VKAPIRequestHandler
|
|||
|
||||
foreach ($user_gifts as $gift) {
|
||||
$gift_item[] = [
|
||||
"id" => $i,
|
||||
"from_id" => $gift->anon == true ? 0 : $gift->sender->getId(),
|
||||
"message" => $gift->caption == null ? "" : $gift->caption,
|
||||
"date" => $gift->sent->timestamp(),
|
||||
|
|
|
@ -106,7 +106,7 @@ final class Notes extends VKAPIRequestHandler
|
|||
return 1;
|
||||
}
|
||||
|
||||
public function get(int $user_id, string $note_ids = "", int $offset = 0, int $count = 10)
|
||||
public function get(int $user_id, string $note_ids = "", int $offset = 0, int $count = 10, int $sort = 0)
|
||||
{
|
||||
$this->requireUser();
|
||||
|
||||
|
|
Loading…
Reference in a new issue