|
From: Paul S. O. <ps...@us...> - 2001-11-27 00:25:00
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv24119
Modified Files:
profile.php
Log Message:
Another Pauls up
Index: profile.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/profile.php,v
retrieving revision 1.145
retrieving revision 1.146
diff -C2 -r1.145 -r1.146
*** profile.php 2001/11/26 14:12:25 1.145
--- profile.php 2001/11/27 00:24:57 1.146
***************
*** 249,256 ****
// Get the users percentage of total posts
! if( $profiledata['user_posts'] != 0 && $total_posts != 0 )
{
$total_posts = get_db_stat("postcount");
! $percentage = sprintf("%.2f", ($profiledata['user_posts'] / $total_posts) * 100);
}
else
--- 249,256 ----
// Get the users percentage of total posts
! if( $profiledata['user_posts'] != 0 )
{
$total_posts = get_db_stat("postcount");
! $percentage = ( $total_posts ) ? sprintf("%.2f", ($profiledata['user_posts'] / $total_posts) * 100) : 0;
}
else
***************
*** 359,363 ****
$template->assign_vars(array(
"USERNAME" => $profiledata['username'],
! "JOINED" => create_date($board_config['default_dateformat'], $profiledata['user_regdate'], $board_config['board_timezone']),
"POSTER_RANK" => $poster_rank,
"RANK_IMAGE" => $rank_image,
--- 359,363 ----
$template->assign_vars(array(
"USERNAME" => $profiledata['username'],
! "JOINED" => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']),
"POSTER_RANK" => $poster_rank,
"RANK_IMAGE" => $rank_image,
|