Index: trunk/kernel/include/parseditem.php =================================================================== diff -u -r943 -r983 --- trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 943) +++ trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 983) @@ -1491,6 +1491,11 @@ var $LastLimitClause = ''; // used to store last limit cluse used in query + function setPageFromENV() + { + $this->Page=$GLOBALS[$this->PageEnvar][$this->PageEnvarIndex]; + } + function clsItemList() { $this->clsItemCollection(); @@ -1742,7 +1747,9 @@ global $objConfig; $update =& $GLOBALS[$this->PageEnvar]; // env_var_update - + + $page_backup = $update[$this->PageEnvarIndex]; + // insteresting stuff :) if(!$this->PerPageVar) $this->PerPageVar = "Perpage_Links"; @@ -1794,7 +1801,7 @@ $next_url = $url.'?env='.BuildEnv(); $o .= ' >>'; } - unset( $update[$this->PageEnvarIndex] ); + $update[$this->PageEnvarIndex] = $page_backup; return $o; } }