Permalink
Browse files

Need to change this otherwise it will cause a php error: [phpBB Debug…

…] PHP Warning: in file [ROOT]/includes/bbdkp/module/stats.php on line 382: sprintf() [function.sprintf]: Too few arguments


Also:[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbdkp/module/stats.php on line 766: sprintf() [function.sprintf]: Too few arguments

These changes will fix it.
  • Loading branch information...
1 parent f758ce8 commit 307b4828e76aa03a798b41c8da034e4670341e12 TheGadgetGuy committed Apr 9, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 root/includes/bbdkp/module/stats.php
@@ -379,7 +379,8 @@ private function memberstats($time)
else
{
- $footcount_text = sprintf($user->lang['STATS_FOOTCOUNT'], $db->sql_affectedrows($members_result));
+ $footcount_text = sprintf($user->lang['STATS_FOOTCOUNT'], $db->sql_affectedrows($members_result),
+ '<a href="' . append_sid("{$phpbb_root_path}dkp.$phpEx" , 'page=stats&amp;o1='.$current_order['uri']['current'] . '" class="rowfoot">'));
$dkppagination = generate_pagination2($this->u_stats . '&amp;o1=' . $current_order ['uri'] ['current']. '&amp;show=all' ,
$member_count, $config ['bbdkp_user_llimit'], $startd, true, 'startdkp' );
@@ -762,7 +763,8 @@ protected function attendance_statistics($time)
else
{
- $footcount_text = sprintf($user->lang['STATS_FOOTCOUNT'], $db->sql_affectedrows($result));
+ $footcount_text = sprintf($user->lang['STATS_FOOTCOUNT'], $db->sql_affectedrows($result),
+ '<a href="' . append_sid("{$phpbb_root_path}dkp.$phpEx" , 'page=stats&amp;o='.$att_current_order['uri']['current'] . '" class="rowfoot">'));
$attpagination = generate_pagination2($this->u_stats . '&amp;o=' . $att_current_order ['uri'] ['current']. '&amp;show=all' ,
$attendance, $config ['bbdkp_user_llimit'], $startatt, true, 'startatt' );

0 comments on commit 307b482

Please sign in to comment.