mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16558] Improve viewonline page
Fix overload of variables PHPBB3-16558
This commit is contained in:
parent
8d0c38383c
commit
4761fef7a8
1 changed files with 4 additions and 4 deletions
|
@ -285,9 +285,9 @@ while ($row = $db->sql_fetchrow($result))
|
||||||
$sql = 'SELECT forum_id
|
$sql = 'SELECT forum_id
|
||||||
FROM ' . TOPICS_TABLE . "
|
FROM ' . TOPICS_TABLE . "
|
||||||
WHERE topic_id = $topic_id";
|
WHERE topic_id = $topic_id";
|
||||||
$result = $db->sql_query($sql);
|
$result1 = $db->sql_query($sql);
|
||||||
$forum_id = (int) $db->sql_fetchfield('forum_id');
|
$forum_id = (int) $db->sql_fetchfield('forum_id');
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -302,9 +302,9 @@ while ($row = $db->sql_fetchrow($result))
|
||||||
FROM ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p
|
FROM ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p
|
||||||
WHERE p.post_id = ' . $post_id . '
|
WHERE p.post_id = ' . $post_id . '
|
||||||
AND t.topic_id = p.topic_id';
|
AND t.topic_id = p.topic_id';
|
||||||
$result = $db->sql_query($sql);
|
$result1 = $db->sql_query($sql);
|
||||||
$forum_id = (int) $db->sql_fetchfield('forum_id');
|
$forum_id = (int) $db->sql_fetchfield('forum_id');
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue