From c1a98264554947b4ee8bc3259f47c894b03318a0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 18 Jun 2020 15:33:52 +0200 Subject: [PATCH] Fix color of tags --- htdocs/categories/class/categorie.class.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index 748a9501101..d5a2f76ecd5 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -1381,17 +1381,16 @@ class Categorie extends CommonObject } } - if ($url == '') - { + if ($url == '') { $link = ''; $linkend = ''; $w[] = $link.($addpicto ? img_object('', 'category', 'class="paddingright"') : '').$cat->label.$linkend; } elseif ($url == 'none') { - $link = ''; - $linkend = ''; + $link = ''; + $linkend = ''; $w[] = $link.($addpicto ? img_object('', 'category', 'class="paddingright"') : '').$cat->label.$linkend; } else { - $w[] = "".($addpicto ? img_object('', 'category') : '').$cat->label.""; + $w[] = ''.($addpicto ? img_object('', 'category') : '').$cat->label.''; } } $newcategwithpath = preg_replace('/toreplace/', $forced_color, implode($sep, $w));