Index: branches/RC/core/units/users/users_item.php =================================================================== diff -u -N -r8929 -r10024 --- branches/RC/core/units/users/users_item.php (.../users_item.php) (revision 8929) +++ branches/RC/core/units/users/users_item.php (.../users_item.php) (revision 10024) @@ -1,48 +1,6 @@ GetID(); - if (!$id) return ; - $sql = 'SELECT VariableValue, VariableName - FROM '.TABLE_PREFIX.'PersistantSessionData - WHERE PortalUserId = '.$id; - $this->persistantVars = $this->Conn->GetCol($sql, 'VariableName'); - } - - function setPersistantVar($var_name, $var_value) - { - $this->persistantVars[$var_name] = $var_value; - - if ($this->GetID() > 0 || $this->GetID() == -1) { - $replace_hash = Array( 'PortalUserId' => $this->GetID(), - 'VariableName' => $var_name, - 'VariableValue' => $var_value - ); - $this->Conn->doInsert($replace_hash, TABLE_PREFIX.'PersistantSessionData', 'REPLACE'); - } - else { - $this->Application->StoreVar($var_name, $var_value); - } - } - - function getPersistantVar($var_name) - { - return getArrayValue($this->persistantVars, $var_name); - } - - function Load($id, $id_field_name = null) - { - $ret = parent::Load($id, $id_field_name); - if ($ret || $id == -1) { - $this->LoadPersistantVars($id); - } - return $ret; - } - /** * Returns IDs of groups to which user belongs and membership is not expired *