profile picture return #
This commit is contained in:
parent
9ab2806951
commit
6feb6c55ca
|
@ -92,6 +92,10 @@ class User
|
||||||
{
|
{
|
||||||
$filename = $this->getField('username').'.png';
|
$filename = $this->getField('username').'.png';
|
||||||
|
|
||||||
|
if( !file_exists(PATH_UPLOADS_PROFILES.$filename) ) {
|
||||||
|
return '#';
|
||||||
|
}
|
||||||
|
|
||||||
if($absolute) {
|
if($absolute) {
|
||||||
return HTML_PATH_UPLOADS_PROFILES.$filename;
|
return HTML_PATH_UPLOADS_PROFILES.$filename;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue