From ba64486e68763f5575b1493f16b3411a1707e9d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Laurent=20L=C3=A9onard?= <laurent@openthink.be>
Date: Mon, 22 Jun 2015 02:53:28 +0200
Subject: [PATCH] Remove useless filter for "text" parameter of boxes content

This filter doesn't allow to display "0" value and is not applied to the similar "text2" parameter.
---
 htdocs/core/boxes/modules_boxes.php | 1 -
 1 file changed, 1 deletion(-)

diff --git a/htdocs/core/boxes/modules_boxes.php b/htdocs/core/boxes/modules_boxes.php
index dfe83012acf..d1d05ec28a8 100644
--- a/htdocs/core/boxes/modules_boxes.php
+++ b/htdocs/core/boxes/modules_boxes.php
@@ -273,7 +273,6 @@ class ModeleBoxes    // Can't be abtract as it is instantiated to build "empty"
                             $tdparam='';
                             if (isset($contents[$i][$j]['td'])) $tdparam.=' '.$contents[$i][$j]['td'];
 
-                            if (empty($contents[$i][$j]['text'])) $contents[$i][$j]['text']="";
                             $text=isset($contents[$i][$j]['text'])?$contents[$i][$j]['text']:'';
                             $textwithnotags=preg_replace('/<([^>]+)>/i','',$text);
                             $text2=isset($contents[$i][$j]['text2'])?$contents[$i][$j]['text2']:'';
-- 
GitLab