diff --git a/libraries/display_tbl.lib.php3 b/libraries/display_tbl.lib.php3
index 9ab4e3867..07057bf86 100644
--- a/libraries/display_tbl.lib.php3
+++ b/libraries/display_tbl.lib.php3
@@ -192,7 +192,7 @@ if (!defined('__LIB_DISPLAY_TBL__')){
{
global $lang, $server, $db, $table;
global $goto;
- global $num_rows, $unlim_num_rows, $pos, $sessionMaxRows;
+ global $num_rows, $unlim_num_rows, $pos, $session_max_rows;
global $dontlimitchars;
?>
@@ -201,7 +201,7 @@ if (!defined('__LIB_DISPLAY_TBL__')){
0 && $sessionMaxRows != 'all') {
+ if ($pos > 0 && $session_max_rows != 'all') {
// loic1: patch #474210 from Gosha Sakovich - part 1
if ($GLOBALS['cfgNavigationBarIconic']) {
$caption1 = '<<';
@@ -223,7 +223,7 @@ if (!defined('__LIB_DISPLAY_TBL__')){
-
+
/>
@@ -237,7 +237,7 @@ if (!defined('__LIB_DISPLAY_TBL__')){
-
+
/>
@@ -252,7 +252,7 @@ if (!defined('__LIB_DISPLAY_TBL__')){
@@ -271,8 +271,8 @@ if (!defined('__LIB_DISPLAY_TBL__')){
|
= $sessionMaxRows
- && $sessionMaxRows != 'all') {
+ if (($pos + $session_max_rows < $unlim_num_rows) && $num_rows >= $session_max_rows
+ && $session_max_rows != 'all') {
// loic1: patch #474210 from Gosha Sakovich - part 2
if ($GLOBALS['cfgNavigationBarIconic']) {
$caption3 = ' > ';
@@ -295,7 +295,7 @@ if (!defined('__LIB_DISPLAY_TBL__')){
-
+
/>
@@ -303,14 +303,14 @@ if (!defined('__LIB_DISPLAY_TBL__')){
|