[vhffs-dev] [1075] Fixed minor bug on next page validation...

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1075
Author:   beuss
Date:     2007-11-08 22:22:43 +0000 (Thu, 08 Nov 2007)

Log Message:
-----------
Fixed minor bug on next page validation...

Modified Paths:
--------------
    trunk/vhffs-public/usersearch.pl


Modified: trunk/vhffs-public/usersearch.pl
===================================================================
--- trunk/vhffs-public/usersearch.pl	2007-11-08 19:46:52 UTC (rev 1074)
+++ trunk/vhffs-public/usersearch.pl	2007-11-08 22:22:43 UTC (rev 1075)
@@ -82,7 +82,7 @@
         $template->param( CURRENT_PAGE => $page );
         $template->param( PAGES => paginate($page, $max_pages ) );
         $template->param( PREVIOUS_PAGE => ($page - 1 < 1 ? 0 : $page - 1 ) );
-        $template->param( NEXT_PAGE => ($page + 1 > $max_pages ? 0 : $max_pages ) );
+        $template->param( NEXT_PAGE => ($page + 1 > $max_pages ? 0 : $page + 1 ) );
     }
     $template->param( TEXT_TITLE => sprintf( gettext('%d user(s) found'), $result->{total_count} ) );
     $template->param( USERS => $result->{users} );


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/