Index: trunk/kernel/include/parseditem.php =================================================================== diff -u -r141 -r155 --- trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 141) +++ trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 155) @@ -955,9 +955,7 @@ function GetNumPages($ItemsPerPage) { - if ($_GET['reset'] == 1) { - $this->Page = 1; - } + if( isset($_GET['reset']) && $_GET['reset'] == 1) $this->Page = 1; return GetPageCount($ItemsPerPage,$this->QueryItemCount); } Index: trunk/admin/import/import.php =================================================================== diff -u -r91 -r155 --- trunk/admin/import/import.php (.../import.php) (revision 91) +++ trunk/admin/import/import.php (.../import.php) (revision 155) @@ -483,7 +483,11 @@ pushid($oldid,$newid); } $row->moveNext(); - } + } + // disable lost+found category + $tmp_cat = $objCatList->GetItemByField('Name','Lost+Found'); + $tmp_cat->Set('Status',0); + $tmp_cat->Update(); return $counter; } Index: trunk/globals.php =================================================================== diff -u -r137 -r155 --- trunk/globals.php (.../globals.php) (revision 137) +++ trunk/globals.php (.../globals.php) (revision 155) @@ -1145,7 +1145,8 @@ function ResetPage($module_prefix, $page_variable = 'p') { // resets page in specific module when category is changed - if(!is_object($objSession)) // when changing pages session doesn't exist -> InPortal BUG + global $objSession; + if( !is_object($objSession) ) // when changing pages session doesn't exist -> InPortal BUG { global $var_list, $SessionQueryString, $FrontEnd; //if(!$var_list["sid"]) $var_list["sid"] = $_COOKIE["sid"]; Index: trunk/kernel/include/portaluser.php =================================================================== diff -u -r137 -r155 --- trunk/kernel/include/portaluser.php (.../portaluser.php) (revision 137) +++ trunk/kernel/include/portaluser.php (.../portaluser.php) (revision 155) @@ -690,7 +690,7 @@ $this->clsItemCollection(); // clsItemList() // need to use this, but double limit clause being created (normal+default 0,100) $this->classname = "clsPortalUser"; $this->SourceTable = GetTablePrefix()."PortalUser"; - $this->Page = $_GET['lpn']; + $this->Page = isset($_GET['lpn']) ? $_GET['lpn'] : 1; $this->EnablePaging = true; $this->PerPageVar = "Perpage_User"; $this->AdminSearchFields = array("Login","FirstName","LastName","Email","Street","City", "State","Zip","Country","Phone");