View Issue Details

IDProjectCategoryView StatusLast Update
0001462mantisbtbugtrackerpublic2002-03-28 23:01
ReporterLuebbe Assigned Tocyclespersecond  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformAll Browsers / Win98OSSuse Linux / ApacheOS Version0.17.0
Product Version0.17.0 
Summary0001462: Off by one Error in prev / next buttons
Description

here's the fix for view_all_inc.php

Steps To Reproduce

<?php # Show NEXT and PREV links as needed ?>


<div align=

TagsNo tags attached.

Activities

epu

epu

2002-02-01 17:15

reporter   ~0001914

Last edited: 2002-02-01 17:16

tried using steps to reproduce, but this doesn't fix error. try instead


<?php

print out a link for each page i.e.

#     [ 1 2 3 ]
#
#for ( $i = 0; $i < $t_page_count; $i++ ) {
# replace the original line (above) with the uncommented one below -epu
for ( $i = 1; $i < $t_page_count+1; $i++ ) {
    if ( $i == $f_page_number ) {
        echo $i;
    } else {

?>

edited on: 02-01 17:16

NiCKEL

NiCKEL

2002-02-20 13:08

reporter   ~0002004

That for statement should read:

for ( $i = 1; $i <= $t_page_count; $i++ ) {

Using a less than while adding one is basically offensive ;)