| #953 | if( is_file(ROOT_PATH.$avatar) ){ |
| #954 | return $this->cfg['webdir'].$avatar; |
| #955 | }else{ |
| #956 | $user = $this->user->get($uid); |
| #957 | if($user['avatar'] && is_file(ROOT_PATH.$user['avatar'])){ |
| #958 | return $this->cfg['webdir'].$user['avatar']; |
| #959 | } |
| #960 | return $this->cfg['webdir'].'static/img/avatar.png'; |
| #961 | } |
| #962 | }else{ |