Code: Select all
$boarddays = ( time() - $config['board_startdate'] ) / 86400;
$posts_per_day = $total_posts / $boarddays;
Code: Select all
$boarddays = ( time() - $config['board_startdate'] ) / 86400;
$boarddays = ($boarddays <= 1) ? '1' : $boarddays;
$posts_per_day = $total_posts / $boarddays;
Nah, it's good; I'll see to it that this will make it into the final version. Thanks for your suggestion!RMcGirr83 wrote:[...] or am I being too picky?
Code: Select all
// posts per day
$boarddays = round(( time() - $config['board_startdate'] ) / 86400);
$boarddays = ($boarddays <= 1) ? '1' : $boarddays;
$posts_per_day = $total_posts / $boarddays;
$l_posts_per_day_s = ($posts_per_day == 0) ? 'POSTS_PER_DAY_ZERO' : 'POSTS_PER_DAY_OTHER';