From e57e753969779538e6beec59c26d0fc18e291909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org> Date: Tue, 6 Jun 2023 04:58:16 +0900 Subject: [PATCH] provide forum info --- ext/eparsons/restapi/controller/forums/Forums.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/eparsons/restapi/controller/forums/Forums.php b/ext/eparsons/restapi/controller/forums/Forums.php index 1190e77..0284d9d 100755 --- a/ext/eparsons/restapi/controller/forums/Forums.php +++ b/ext/eparsons/restapi/controller/forums/Forums.php @@ -148,7 +148,7 @@ class Forums $forum = array(); - while ($row => $db->sql_fetchrow($forum_query)) { + while ($row = $db->sql_fetchrow($forum_query)) { $forum["name"] = $row["forum_name"]; $forum["desc"] = $row["forum_desc"]; } @@ -156,7 +156,7 @@ class Forums return new JsonResponse( array( "forum" => $forum, - "topics" => $topics + "topics" => $topics, ), 200 ); -- GitLab