From 6feb6c55cad6f89e943b428ae8e3488f9acc4fcb Mon Sep 17 00:00:00 2001 From: dignajar Date: Wed, 21 Sep 2016 23:12:29 -0300 Subject: [PATCH] profile picture return # --- bl-kernel/user.class.php | 4 ++++ 1 file changed, 4 insertions(+) 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; }