From 4c74fc8a1d66e4342703042b47c576990493b0ed Mon Sep 17 00:00:00 2001
From: SofianeLasri <alasri250@gmail.com>
Date: Sat, 15 Jan 2022 15:54:41 +0100
Subject: [PATCH] fix

---
 pages/client/shops.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pages/client/shops.php b/pages/client/shops.php
index 8eda9fc6..fe7486b1 100644
--- a/pages/client/shops.php
+++ b/pages/client/shops.php
@@ -89,9 +89,10 @@
 
                         // Si l'item possède un nom custom, on va l'afficher
                         if($shop['item']->getDisplayName() != null){
-                            $displayName = '<i class="icon-minecraft icon-minecraft-name-tag"></i> '.$shop['item']->getDisplayName();
+                            $displayName = '<i class="icon-minecraft icon-minecraft-name-tag"></i> '.(strlen($shop['item']->getLabel()) > 22) ? substr($shop['item']->getLabel(),0,19).'...' : $shop['item']->getLabel();
                         }else{
-                            $displayName = (strlen($shop['item']->getLabel()) > 22) ? substr($shop['item']->getLabel(),0,19).'...' : $shop['item']->getLabel();
+                            
+                            $displayName = $shop['item']->getLabel();
                         }
 
                         // Si l'item est enchant, on va lui appliquer un style custom
-- 
GitLab