From 04b94ec4cc51fdaa3b219562f212fd625479e0e7 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Sun, 29 Jan 2023 21:53:56 +0800 Subject: [PATCH] fix save user medals btn --- include/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 053548cc..e10b0d60 100644 --- a/include/functions.php +++ b/include/functions.php @@ -5896,7 +5896,9 @@ function build_medal_image(\Illuminate\Support\Collection $medals, $maxHeight = $html .= ''; $medalImages[] = $html; } - $medalImages[] = sprintf('
', nexus_trans('label.save')); + if ($withActions) { + $medalImages[] = sprintf('
', nexus_trans('label.save')); + } return $wrapBefore . implode('', $medalImages) . $wrapAfter; }