From 90f48673ab59096036d968a21ef228b36bd39803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Fri, 2 Nov 2001 19:03:23 +0000 Subject: [PATCH] merged patch #477498 - Cosmetic Change --- ChangeLog | 3 ++- libraries/display_tbl.lib.php3 | 18 +++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2d92e7142..46dee3893 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,11 +9,12 @@ $Source$ * sql.php3, lines 225-233: in case of erroneous query, it is now re-displayed in the query textearea of the calling script. * lang/slovak.inc.php3: eol was missing at the end of the file. + * libraries/display_tbl.lib.php3: patch #477498 Cosmetic Change. 2001-11-02 Marc Delisle * lang/slovak-iso.inc.php3: updates thanks to Lubos Klokner, tests with Loïc: this file must be sent gzipped, otherwise Windows will - corrupt some characters + corrupt some characters. * main.php3, lang/*: new $strWelcome 2001-10-29 Loïc Chapeaux diff --git a/libraries/display_tbl.lib.php3 b/libraries/display_tbl.lib.php3 index 649d36f61..23c9912ec 100644 --- a/libraries/display_tbl.lib.php3 +++ b/libraries/display_tbl.lib.php3 @@ -751,11 +751,11 @@ if (!defined('__LIB_DISPLAY_TBL__')){ $primary = $fields_meta[$i]; if ($primary->numeric == 1) { if (!isset($row[$primary->name])) { - echo ' NULL' . "\n"; + echo ' NULL' . "\n"; } else if ($row[$i] != '') { - echo ' ' . $row[$primary->name] . '' . "\n"; + echo ' ' . $row[$primary->name] . '' . "\n"; } else { - echo '  ' . "\n"; + echo '  ' . "\n"; } } else if ($GLOBALS['cfgShowBlob'] == FALSE && eregi('BLOB', $primary->type)) { // loic1 : mysql_fetch_fields returns BLOB in place of TEXT @@ -764,7 +764,7 @@ if (!defined('__LIB_DISPLAY_TBL__')){ // fields. $field_flags = mysql_field_flags($dt_result, $i); if (eregi('BINARY', $field_flags)) { - echo ' [BLOB]' . "\n"; + echo ' [BLOB]' . "\n"; } else { if (!isset($row[$primary->name])) { echo ' NULL' . "\n"; @@ -774,14 +774,14 @@ if (!defined('__LIB_DISPLAY_TBL__')){ } // loic1: displays / $row[$primary->name] = ereg_replace("((\015\012)|(\015)|(\012))+", '
', htmlspecialchars($row[$primary->name])); - echo ' ' . $row[$primary->name] . '' . "\n"; + echo ' ' . $row[$primary->name] . '' . "\n"; } else { - echo '  ' . "\n"; + echo '  ' . "\n"; } } } else { if (!isset($row[$primary->name])) { - echo ' NULL' . "\n"; + echo ' NULL' . "\n"; } else if ($row[$primary->name] != '') { // loic1: Cut text/blob fields even if $cfgShowBlob is true if (eregi('BLOB', $primary->type)) { @@ -802,9 +802,9 @@ if (!defined('__LIB_DISPLAY_TBL__')){ else { $row[$primary->name] = ereg_replace("((\015\012)|(\015)|(\012))+", '
', htmlspecialchars($row[$primary->name])); } - echo ' ' . $row[$primary->name] . '' . "\n"; + echo ' ' . $row[$primary->name] . '' . "\n"; } else { - echo '  ' . "\n"; + echo '  ' . "\n"; } } } // end for (2)