profile picture return #

This commit is contained in:
dignajar 2016-09-21 23:12:29 -03:00
parent 9ab2806951
commit 6feb6c55ca
1 changed files with 4 additions and 0 deletions

View File

@ -92,6 +92,10 @@ class User
{
$filename = $this->getField('username').'.png';
if( !file_exists(PATH_UPLOADS_PROFILES.$filename) ) {
return '#';
}
if($absolute) {
return HTML_PATH_UPLOADS_PROFILES.$filename;
}