Skip to content
Snippets Groups Projects
Commit 75ae8e91 authored by Bye's avatar Bye
Browse files

Clearing profile.php will remake soon

parent 10702cef
Branches
No related tags found
1 merge request!1Update production branch so it can be used
......@@ -19,26 +19,5 @@ if (empty($profile)) {
];
}
$avatar = "/assets/default.png";
$display_name = "";
if ($_SESSION['id'] != $profile['id']) {
$avatar = get_avatar_url($profile['id']);
if ($profile['public_display_name']) {
$display_name = get_display_name($profile['id'], false);
}
} else {
$avatar = get_avatar_url($profile['id']);
$display_name = get_display_name($profile['id'], false);
}
// Get badges owned by this person
$badges = db_execute_all('SELECT * FROM badge_owners INNER JOIN badges b on badge_owners.badge_id = b.id WHERE owner_id = ?; ', [$profile['id']]);
if (!empty($badges)) {
if (!array_is_list($badges)) {
$badges = array (0 => $badges);
}
}
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment