Off by one error in home.php (show last 20 kills)

Please report bugs here, please be very detailed in your bug reports. If you've come up with some code to fix the bug, please post it here.
Post Reply
Brasema
Noob
Posts: 1
Joined: Sat Jun 14, 2008 20:24

Off by one error in home.php (show last 20 kills)

Post by Brasema » Fri Nov 17, 2006 20:26

The last 20 kills function actually shows 21 kills.

Original home.php code:

Code: Select all

// boards with low killcount could not display 20 kills with those limits
//$klist->setStartWeek($week - 1);
//$klist->setYear($year);

if ($_GET['scl_id'])    
    $klist->addVictimShipClass(new ShipClass($_GET['scl_id']));
else
    $klist->setPodsNoobShips(false);

$table = new KillListTable($klist);
$table->setLimit(20);
$html .= $table->generate();
Changed line:

Code: Select all

$table->setLimit(19);

Post Reply

Return to “Bug Reporting”

Who is online

Users browsing this forum: No registered users and 6 guests