From f1742c65d96d123cd394d559ab636bad02ffb65f Mon Sep 17 00:00:00 2001 From: Floorb <132411956+Neetpone@users.noreply.github.com> Date: Mon, 9 Aug 2021 04:26:36 -0400 Subject: [PATCH] Temp user profile fix. --- theme/bulma/user_profile.php | 7 +++---- theme/bulma/view.php | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/theme/bulma/user_profile.php b/theme/bulma/user_profile.php index 5b04f63..fad7df3 100644 --- a/theme/bulma/user_profile.php +++ b/theme/bulma/user_profile.php @@ -179,9 +179,8 @@ $protocol = paste_protocol(); $p_dateui = $p_date->format("d F Y"); $p_views = Trim($row['views']); $p_visible = intval($row['visible']); - $p_tags = Trim($row['tagsys']); - $tagArray = explode(',', $p_tags); - $tagArray = array_filter($tagArray); + $tagArray = array_map(function($tag) { return $tag['name']; }, getPasteTags($conn, $p_id)); + $p_tags = implode(',', $tagArray); $p_visible = match ($p_visible) { @@ -209,7 +208,7 @@ $protocol = paste_protocol(); '; if (strlen($p_tags) > 0) { - foreach ($tagArray as $key => $tags) { + foreach ($tagArray as $tags) { echo '' . trim($tags) . ''; } } else { diff --git a/theme/bulma/view.php b/theme/bulma/view.php index 312428a..7356549 100644 --- a/theme/bulma/view.php +++ b/theme/bulma/view.php @@ -178,10 +178,10 @@ $selectedloader = "$bg[$i]"; // set variable equal to which random filename was
- user_id); + user_id); } - echo $fav_paste; ?>