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"];