mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 19:54:12 +02:00
More search updates + user posts
git-svn-id: file:///svn/phpbb/trunk@1428 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -248,7 +248,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||
$posts_per_day = sprintf("%.2f", $profiledata['user_posts'] / $memberdays);
|
||||
|
||||
// Get the users percentage of total posts
|
||||
if($profiledata['user_posts'] != 0)
|
||||
if( $profiledata['user_posts'] != 0 && $total_posts != 0 )
|
||||
{
|
||||
$total_posts = get_db_stat("postcount");
|
||||
$percentage = sprintf("%.2f", ($profiledata['user_posts'] / $total_posts) * 100);
|
||||
|
Reference in New Issue
Block a user