- if ($this->_user === -1) {
- $this->_user = User::getKV('id', $this->id);
+ if (!isset($this->_user[$this->id])) {
+ $this->_setUser(User::getKV('id', $this->id));
- if ($this->_group === -1) {
- $this->_group = User_group::getKV('profile_id', $this->id);
+ if (!isset($this->_group[$this->id])) {
+ $this->_setGroup(User_group::getKV('profile_id', $this->id));
public function getAvatar($width, $height=null)
{
return Avatar::byProfile($this, $width, $height);
public function getAvatar($width, $height=null)
{
return Avatar::byProfile($this, $width, $height);