diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/partials.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/partials.php b/src/partials.php index a361f7b..c9ee5cb 100644 --- a/src/partials.php +++ b/src/partials.php @@ -83,8 +83,8 @@ function html_navigation_bar() Signed in as <?php echo $_SESSION["user_name"] ?> <?php echo '<img src="/static/'; - if (is_file($_SERVER['DOCUMENT_ROOT'] . "/static/userdata/avatars/" . $_SESSION["user_id"])) { - echo 'userdata/avatars/' . $_SESSION["user_id"]; + if (is_dir($_SERVER['DOCUMENT_ROOT'] . "/static/userdata/avatars/" . $_SESSION["user_id"])) { + echo 'userdata/avatars/' . $_SESSION["user_id"] . "/1x.webp"; } else { echo 'img/defaults/profile_picture.png'; } |
