From b3ef751c8b8af948c016a8d4162fe631b66878f3 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Mon, 11 Mar 2024 21:34:05 +0000 Subject: [PATCH] Update file user.php --- html/user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/user.php b/html/user.php index 7e6fe1eb..8cc77a1c 100644 --- a/html/user.php +++ b/html/user.php @@ -15,7 +15,7 @@ if($resultat) { $user_creation_date = $resultat[0]['creation_date']; $user_display_name = $resultat[0]['display_name']; $user_role = $resultat[0]['role']; - $user_pp = $resultat[0]['profile_picture'] == NULL ? "" : $resultat[0]['profile_picture']; + $user_pp = $resultat[0]['profile_picture'] == NULL ? "https://abs.twimg.com/sticky/default_profile_images/default_profile_400x400.png" : $resultat[0]['profile_picture']; $user_banner = $resultat[0]['banner'] = NULL ? "./src/img/empty.jpg" : $resultat[0]['banner']; $user_bio = $resultat[0]['bio']; } else { @@ -24,7 +24,7 @@ if($resultat) { $user_creation_date = "01/01/2024"; $user_display_name = "User not found"; $user_role = 0; - $user_pp = ""; + $user_pp = "https://abs.twimg.com/sticky/default_profile_images/default_profile_400x400.png"; $user_banner = "./src/img/empty.jpg"; $user_bio = ""; }