diff --git a/bl-kernel/user.class.php b/bl-kernel/user.class.php index 274fd3af..47fe4edd 100644 --- a/bl-kernel/user.class.php +++ b/bl-kernel/user.class.php @@ -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; }