From 9f861775f3b737cef21f43c6db83a815dfb6556f Mon Sep 17 00:00:00 2001 From: "johnny@pittpc.com" Date: Thu, 25 Mar 2021 12:57:39 -0400 Subject: [PATCH] If no avatar is used display User icon instead --- check_login.php | 5 +---- settings-user.php | 8 ++++++-- top_nav.php | 16 ++++++++++++---- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/check_login.php b/check_login.php index d949a222..54a86e31 100644 --- a/check_login.php +++ b/check_login.php @@ -21,9 +21,6 @@ $session_name = $row['name']; $session_email = $row['email']; $session_avatar = $row['avatar']; - if(empty($session_avatar)){ - $session_avatar = "dist/img/noone.png"; - } $session_company_id = $row['permission_default_company']; $session_token = $row['token']; @@ -66,4 +63,4 @@ $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('alert_id') AS num FROM alerts WHERE alert_ack_date IS NULL AND company_id = $session_company_id")); $num_alerts = $row['num']; -?> \ No newline at end of file +?> diff --git a/settings-user.php b/settings-user.php index 5ce0bc73..bfce7e16 100644 --- a/settings-user.php +++ b/settings-user.php @@ -31,7 +31,11 @@ $password = $row['password'];
- " class="img-circle img-fluid elevation-2"> + + + + +

@@ -196,4 +200,4 @@ $password = $row['password']; - \ No newline at end of file + diff --git a/top_nav.php b/top_nav.php index 5fdc61d5..1dc21825 100644 --- a/top_nav.php +++ b/top_nav.php @@ -34,14 +34,22 @@