mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-15 03:55:23 +02:00
eh? meh.
git-svn-id: file:///svn/phpbb/trunk@5928 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
bcdb8c2659
commit
f15d6862ae
@ -841,13 +841,16 @@ class ucp_main
|
|||||||
$active_f_row = $db->sql_fetchrow($result);
|
$active_f_row = $db->sql_fetchrow($result);
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
$sql = 'SELECT forum_name
|
if (!empty($active_f_row))
|
||||||
FROM ' . FORUMS_TABLE . '
|
{
|
||||||
WHERE forum_id = ' . $active_f_row['forum_id'];
|
$sql = 'SELECT forum_name
|
||||||
$result = $db->sql_query($sql);
|
FROM ' . FORUMS_TABLE . '
|
||||||
$row = $db->sql_fetchrow($result);
|
WHERE forum_id = ' . $active_f_row['forum_id'];
|
||||||
$db->sql_freeresult($result);
|
$result = $db->sql_query($sql);
|
||||||
$active_f_row['forum_name'] = $row['forum_name'];
|
$row = $db->sql_fetchrow($result);
|
||||||
|
$db->sql_freeresult($result);
|
||||||
|
$active_f_row['forum_name'] = $row['forum_name'];
|
||||||
|
}
|
||||||
|
|
||||||
// Firebird does not support ORDER BY on aliased columns
|
// Firebird does not support ORDER BY on aliased columns
|
||||||
// MySQL does not support ORDER BY on functions
|
// MySQL does not support ORDER BY on functions
|
||||||
@ -880,13 +883,16 @@ class ucp_main
|
|||||||
$active_t_row = $db->sql_fetchrow($result);
|
$active_t_row = $db->sql_fetchrow($result);
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
$sql = 'SELECT topic_title
|
if (!empty($active_t_row))
|
||||||
FROM ' . TOPICS_TABLE . '
|
{
|
||||||
WHERE topic_id = ' . $active_t_row['topic_id'];
|
$sql = 'SELECT topic_title
|
||||||
$result = $db->sql_query($sql);
|
FROM ' . TOPICS_TABLE . '
|
||||||
$row = $db->sql_fetchrow($result);
|
WHERE topic_id = ' . $active_t_row['topic_id'];
|
||||||
$db->sql_freeresult($result);
|
$result = $db->sql_query($sql);
|
||||||
$active_t_row['topic_title'] = $row['topic_title'];
|
$row = $db->sql_fetchrow($result);
|
||||||
|
$db->sql_freeresult($result);
|
||||||
|
$active_t_row['topic_title'] = $row['topic_title'];
|
||||||
|
}
|
||||||
|
|
||||||
$active_f_name = $active_f_id = $active_f_count = $active_f_pct = '';
|
$active_f_name = $active_f_id = $active_f_count = $active_f_pct = '';
|
||||||
if (!empty($active_f_row['num_posts']))
|
if (!empty($active_f_row['num_posts']))
|
||||||
|
@ -1303,13 +1303,16 @@ function show_user_activity(&$member)
|
|||||||
$active_f_row = $db->sql_fetchrow($result);
|
$active_f_row = $db->sql_fetchrow($result);
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
$sql = 'SELECT forum_name
|
if (!empty($active_f_row))
|
||||||
FROM ' . FORUMS_TABLE . '
|
{
|
||||||
WHERE forum_id = ' . $active_f_row['forum_id'];
|
$sql = 'SELECT forum_name
|
||||||
$result = $db->sql_query($sql);
|
FROM ' . FORUMS_TABLE . '
|
||||||
$row = $db->sql_fetchrow($result);
|
WHERE forum_id = ' . $active_f_row['forum_id'];
|
||||||
$db->sql_freeresult($result);
|
$result = $db->sql_query($sql);
|
||||||
$active_f_row['forum_name'] = $row['forum_name'];
|
$row = $db->sql_fetchrow($result);
|
||||||
|
$db->sql_freeresult($result);
|
||||||
|
$active_f_row['forum_name'] = $row['forum_name'];
|
||||||
|
}
|
||||||
|
|
||||||
// Firebird does not support ORDER BY on aliased columns
|
// Firebird does not support ORDER BY on aliased columns
|
||||||
// MySQL does not support ORDER BY on functions
|
// MySQL does not support ORDER BY on functions
|
||||||
@ -1342,13 +1345,16 @@ function show_user_activity(&$member)
|
|||||||
$active_t_row = $db->sql_fetchrow($result);
|
$active_t_row = $db->sql_fetchrow($result);
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
$sql = 'SELECT topic_title
|
if (!empty($active_t_row))
|
||||||
FROM ' . TOPICS_TABLE . '
|
{
|
||||||
WHERE topic_id = ' . $active_t_row['topic_id'];
|
$sql = 'SELECT topic_title
|
||||||
$result = $db->sql_query($sql);
|
FROM ' . TOPICS_TABLE . '
|
||||||
$row = $db->sql_fetchrow($result);
|
WHERE topic_id = ' . $active_t_row['topic_id'];
|
||||||
$db->sql_freeresult($result);
|
$result = $db->sql_query($sql);
|
||||||
$active_t_row['topic_title'] = $row['topic_title'];
|
$row = $db->sql_fetchrow($result);
|
||||||
|
$db->sql_freeresult($result);
|
||||||
|
$active_t_row['topic_title'] = $row['topic_title'];
|
||||||
|
}
|
||||||
|
|
||||||
$member['active_t_row'] = $active_t_row;
|
$member['active_t_row'] = $active_t_row;
|
||||||
$member['active_f_row'] = $active_f_row;
|
$member['active_f_row'] = $active_f_row;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user