/**
  * @see User::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     if (MODULE_AVATAR == 1 && !$this->disableAvatar && (!WCF::getUser()->userID || WCF::getUser()->showAvatar) && ($this->userID == WCF::getUser()->userID || WCF::getUser()->getPermission('user.profile.avatar.canViewAvatar'))) {
         if (MODULE_GRAVATAR == 1 && $this->gravatar) {
             $this->avatar = new Gravatar($this->gravatar);
         } else {
             if ($this->avatarID) {
                 $this->avatar = new Avatar(null, $data);
             }
         }
     }
     if ($this->rankID) {
         $this->rank = new UserRank(null, $data);
     }
 }