Merge pull request #5925 from 3D-I/ticket/16418

[ticket/16418] Fix non-numeric value - ACP board start date
This commit is contained in:
mrgoldy 2020-04-14 16:19:04 +02:00
commit b4a900c993

View file

@ -493,7 +493,7 @@ class acp_main
$start_date = $user->format_date($config['board_startdate']);
$boarddays = (time() - $config['board_startdate']) / 86400;
$boarddays = (time() - (int) $config['board_startdate']) / 86400;
$posts_per_day = sprintf('%.2f', $total_posts / $boarddays);
$topics_per_day = sprintf('%.2f', $total_topics / $boarddays);