From 5bced477245f1f5f6c4f928f6967c8cb49f122ec Mon Sep 17 00:00:00 2001 From: veselcraft Date: Sun, 24 Jul 2022 00:42:28 +0300 Subject: [PATCH] =?UTF-8?q?VKAPI:=20=D1=85=D0=B0=D0=B2=D0=B0=D1=85=D1=85?= =?UTF-8?q?=D0=B0=D1=85=D0=B0=D1=85=D0=B0=D1=85=D0=B0=20=D0=B8=D0=BB=D1=8C?= =?UTF-8?q?=D1=8F=20=D0=BA=D0=B0=D0=BF=D0=B5=D1=86=20=D1=82=D1=8B=20=D1=84?= =?UTF-8?q?=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8E=20=D1=81=D0=BB=D0=BE=D0=BC?= =?UTF-8?q?=D0=B0=D0=BB=20=D0=B8=20=D0=BE=D0=BD=D0=B0=20=D0=BA=D0=BE=D1=80?= =?UTF-8?q?=D0=BE=D1=87=D0=B5=20=D0=B8=D0=B7-=D0=B7=D0=B0=20=D1=8D=D1=82?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE=20=D0=BD=D0=BE=D0=B2=D0=BE=D1=81=D1=82=D0=B8?= =?UTF-8?q?=20=D0=BD=D0=B5=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D0=B2=D0=B0?= =?UTF-8?q?=D0=BB=D0=B0=20=D0=BE=D0=B9=20=D0=B2=D1=81=D0=BC=D1=8B=D1=81?= =?UTF-8?q?=D0=BB=D0=B5=20Fix=20newsfeed.get=20function=20to=20get=20it=20?= =?UTF-8?q?workin=20again?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VKAPI/Handlers/Wall.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VKAPI/Handlers/Wall.php b/VKAPI/Handlers/Wall.php index 7f99502f..8331e2ab 100644 --- a/VKAPI/Handlers/Wall.php +++ b/VKAPI/Handlers/Wall.php @@ -152,10 +152,10 @@ final class Wall extends VKAPIRequestHandler function getById(string $posts, int $extended = 0, string $fields = "", User $user = NULL) { - $this->requireUser(); - - if($user == NULL) + if($user == NULL) { + $this->requireUser(); $user = $this->getUser(); # костыли костыли крылышки + } $items = []; $profiles = [];