mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14051] Restore accidentally removed $topics_count value
PHPBB3-14051
This commit is contained in:
parent
a4fac6da2a
commit
a5790597ca
1 changed files with 3 additions and 0 deletions
|
@ -308,7 +308,10 @@ if ($sort_days)
|
|||
'sql_array',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.viewforum_modify_sort_data_sql', compact($vars)));
|
||||
|
||||
$result = $db->sql_query($db->sql_build_query('SELECT', $sql_array));
|
||||
$topics_count = (int) $db->sql_fetchfield('num_topics');
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if (isset($_POST['sort']))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue