Index: branches/unlabeled/unlabeled-1.68.2/core/units/general/cat_event_handler.php =================================================================== diff -u -r6794 -r6842 --- branches/unlabeled/unlabeled-1.68.2/core/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 6794) +++ branches/unlabeled/unlabeled-1.68.2/core/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 6842) @@ -319,7 +319,7 @@ } // add permission filter - if ($this->Application->GetVar('u_id') == -1) { + if ($this->Application->RecallVar('user_id') == -1) { // for "root" CATEGORY.VIEW permission is checked for items lists too $view_perm = 1; } @@ -418,7 +418,7 @@ { case 'favorites': $fav_table = $this->Application->getUnitOption('fav','TableName'); - $user_id =& $this->Application->GetVar('u_id'); + $user_id =& $this->Application->RecallVar('user_id'); $sql = 'SELECT DISTINCT f.ResourceId FROM '.$fav_table.' f @@ -731,8 +731,7 @@ { unset($field_list[$key]); continue; // ignoring having type clauses in simple search - /*$user_object =& $this->Application->recallObject('u'); - $user_groups = $this->Application->RecallVar('UserGroups'); + /*$user_groups = $this->Application->RecallVar('UserGroups'); $having_list[$key] = str_replace('{PREFIX}', TABLE_PREFIX, $exploded[1]); $join_clause = str_replace('{PREFIX}', TABLE_PREFIX, $search_config[$field]['JoinClause']); $join_clause = str_replace('{USER_GROUPS}', $user_groups, $join_clause); @@ -901,7 +900,6 @@ $lang = $this->Application->GetVar('m_lang'); $object =& $event->getObject(); $object->SetPage(1); - $user_object =& $this->Application->recallObject('u'); $product_table = $this->Application->getUnitOption('p', 'TableName'); $search_keywords = $this->Application->GetVar('value'); // will not be changed @@ -1628,7 +1626,7 @@ if ($event->status == erSUCCESS) { $object =& $event->getObject(); - $object->SetDBField('CreatedById', $this->Application->GetVar('u_id')); + $object->SetDBField('CreatedById', $this->Application->RecallVar('user_id')); } }