Guest User

Untitled

a guest
Nov 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. // XXX: @Fix me gargargar
  2. function _getAvatar($width)
  3. {
  4. if (empty($this->_avatars)) {
  5. $this->_avatars = array();
  6. }
  7.  
  8. // GAR! I cannot figure out where _avatars gets pre-filled with the avatar from
  9. // the previously used profile! Please shoot me now! --Zach
  10. if (array_key_exists($width, $this->_avatars)) {
  11. // Don't return cached avatar unless it's really for this profile
  12. if ($this->_avatars[$width]->profile_id == $this->id) {
  13. return $this->_avatars[$width];
  14. }
  15. }
  16.  
  17. return null;
  18. }
Add Comment
Please, Sign In to add comment