From d857bf78c0f8639eae9e21ffe4e04ee68e94d04b Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 7 May 2025 14:42:30 +0500 Subject: feat: display default avatar if user doesn't have one --- public/account/index.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'public/account') diff --git a/public/account/index.php b/public/account/index.php index 8ecce33..5455727 100644 --- a/public/account/index.php +++ b/public/account/index.php @@ -88,13 +88,23 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {

Profile

Profile picture

- " id="pfp" width="64" - height="64"> + '; + } else { + echo "

You don't have profile picture

"; + } + ?>

Profile banner

- " id="banner" width="192" - height="108"> + '; + } else { + echo "

You don't have profile banner

"; + } + ?>

Username

-- cgit v1.2.3