summaryrefslogtreecommitdiff
path: root/tohtml.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2023-03-17 00:54:06 +0100
committerDamien Regad <dregad@mantisbt.org>2023-03-17 22:55:29 +0100
commite3200059fa08ce9fcc9442a9cbb0971e2ddbf908 (patch)
tree929dd6615fdb0a6ad43f7ff103d66a3abbf95423 /tohtml.inc.php
parentb5a88e7d3fafd2936fd093415ff7cf3277a7b9e2 (diff)
downloadadodb-e3200059fa08ce9fcc9442a9cbb0971e2ddbf908.tar.gz
adodb-e3200059fa08ce9fcc9442a9cbb0971e2ddbf908.tar.bz2
adodb-e3200059fa08ce9fcc9442a9cbb0971e2ddbf908.zip
trim(): Passing null to parameter #1 is deprecated
Diffstat (limited to 'tohtml.inc.php')
-rw-r--r--tohtml.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tohtml.inc.php b/tohtml.inc.php
index b3c08e32..a36fdf6b 100644
--- a/tohtml.inc.php
+++ b/tohtml.inc.php
@@ -113,7 +113,8 @@ GLOBAL $gSQLMaxRows,$gSQLBlockRows,$ADODB_ROUND;
else
$v = round($v,$ADODB_ROUND);
case 'I':
- $vv = stripslashes((trim($v)));
+ $vv = $v ? stripslashes(trim($v)) : '';
+ $vv = $vv ?: '&nbsp;';
if (strlen($vv) == 0) $vv .= '&nbsp;';
$s .= " <TD align=right>".$vv ."</TD>\n";