diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-27 00:24:57 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-27 00:24:57 +0000 |
| commit | 7d7c3a53fbdf2a818db6a1001b79d265455d68a4 (patch) | |
| tree | f634b1ff412440fc9c0aad97be259edef6ca5425 /phpBB | |
| parent | 5aa70cf3bef775c18758bfdc8b66fb3b18ea9d80 (diff) | |
| download | forums-7d7c3a53fbdf2a818db6a1001b79d265455d68a4.tar forums-7d7c3a53fbdf2a818db6a1001b79d265455d68a4.tar.gz forums-7d7c3a53fbdf2a818db6a1001b79d265455d68a4.tar.bz2 forums-7d7c3a53fbdf2a818db6a1001b79d265455d68a4.tar.xz forums-7d7c3a53fbdf2a818db6a1001b79d265455d68a4.zip | |
Another Pauls up
git-svn-id: file:///svn/phpbb/trunk@1459 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/profile.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php index da95e749d7..ae481a9e41 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -248,10 +248,10 @@ 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 && $total_posts != 0 ) + if( $profiledata['user_posts'] != 0 ) { $total_posts = get_db_stat("postcount"); - $percentage = sprintf("%.2f", ($profiledata['user_posts'] / $total_posts) * 100); + $percentage = ( $total_posts ) ? sprintf("%.2f", ($profiledata['user_posts'] / $total_posts) * 100) : 0; } else { @@ -358,7 +358,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) $template->assign_vars(array( "USERNAME" => $profiledata['username'], - "JOINED" => create_date($board_config['default_dateformat'], $profiledata['user_regdate'], $board_config['board_timezone']), + "JOINED" => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']), "POSTER_RANK" => $poster_rank, "RANK_IMAGE" => $rank_image, "POSTS_PER_DAY" => $posts_per_day, |
