diff --git a/ext/eparsons/restapi/controller/forums/Forums.php b/ext/eparsons/restapi/controller/forums/Forums.php index 1190e7722692239a9d6b82e98badc09c597ce2c2..0284d9df9b4a8660f21528fa157c9e364babc978 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 );