Index: trunk/admin/category/category_maint.php
===================================================================
diff -u -r534 -r540
--- trunk/admin/category/category_maint.php (.../category_maint.php) (revision 534)
+++ trunk/admin/category/category_maint.php (.../category_maint.php) (revision 540)
@@ -189,7 +189,7 @@
$percent = (int)(($CatIndex/$NumCats) * 100);
}
- if(is_numeric($_GET["CatIndex"]))
+ if( is_numeric( GetVar('CatIndex') ) )
{
if ($percent == 0)
{
Index: trunk/kernel/include/usersession.php
===================================================================
diff -u -r534 -r540
--- trunk/kernel/include/usersession.php (.../usersession.php) (revision 534)
+++ trunk/kernel/include/usersession.php (.../usersession.php) (revision 540)
@@ -409,6 +409,7 @@
}
$this->Set("PortalUserId", $result->fields["PortalUserId"]);
+ unset($this->CurrentUser);
if(strlen($result->fields["tz"])>0)
$this->Set("tz",$result->fields["tz"]);
$PrimaryGroup=0;
@@ -515,9 +516,13 @@
if($userid > 0)
{
if(!is_object($this->CurrentUser))
- $this->CurrentUser = $objUsers->GetItem($this->Get("PortalUserId"));
+ {
+ $this->CurrentUser = $objUsers->GetItem($userid);
+ }
if(!$this->CurrentUser->VarsLoaded)
+ {
$this->CurrentUser->LoadPersistantVars();
+ }
//echo "setting current user' $variableName, $variableValue
";
$this->CurrentUser->SetPersistantVariable($variableName, $variableValue);
//$this->SetVariable($variableName,$variableValue);
@@ -530,12 +535,17 @@
{
global $objConfig, $objUsers;
- if(is_numeric($this->Get("PortalUserId")))
+ $UserID = $this->Get("PortalUserId");
+ if(is_numeric($UserID))
{
if(!is_object($this->CurrentUser))
- $this->CurrentUser = $objUsers->GetItem($this->Get("PortalUserId"));
+ {
+ $this->CurrentUser = $objUsers->GetItem($UserID);
+ }
if(!$this->CurrentUser->VarsLoaded)
+ {
$this->CurrentUser->LoadPersistantVars();
+ }
$val = $this->CurrentUser->GetPersistantVariable($variableName);
}
if(!strlen($val))
Index: trunk/admin/category/addpermission_modules.php
===================================================================
diff -u -r534 -r540
--- trunk/admin/category/addpermission_modules.php (.../addpermission_modules.php) (revision 534)
+++ trunk/admin/category/addpermission_modules.php (.../addpermission_modules.php) (revision 540)
@@ -261,7 +261,7 @@
{
echo "