mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 16:46:50 +02:00
fixes #3269 switched v1 tables to v2
Fixed issue with null values in table (on duplicate)
This commit is contained in:
3
top.php
3
top.php
@@ -193,7 +193,8 @@ if ($action == 'top')
|
||||
$text .= "</table>\n</div>";
|
||||
if ($subaction == 'forum')
|
||||
{
|
||||
$ftotal = $sql->db_Count('user', '(*)', 'WHERE `user_forums` > 0');
|
||||
//$ftotal = $sql->db_Count('user', '(*)', 'WHERE `user_forums` > 0');
|
||||
$ftotal = $sql->count('user_extended', '(*)', 'WHERE `user_plugin_forum_posts` > 0');
|
||||
$parms = "{$ftotal},{$view},{$from},".e_SELF.'?[FROM].top.forum.'.$view;
|
||||
$text .= "<div class='nextprev'>".$tp->parseTemplate("{NEXTPREV={$parms}}").'</div>';
|
||||
}
|
||||
|
Reference in New Issue
Block a user