From 67b5cf4b8ddddd94e1217812729b3b779f467a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 18 Aug 2001 17:47:31 +0000 Subject: [PATCH] * fixed a bug with a global variable, * ensures the number of rows is displayed with select statements submitted from the query box, * fixed some coding style inconcistencies. --- lib.inc.php3 | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib.inc.php3 b/lib.inc.php3 index dcae6418d..20483c0bb 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -134,12 +134,12 @@ if (!defined('__LIB_INC__')){ } echo ''. $GLOBALS['strError'] . '' . "\n"; - echo '

' . "\n"; if (!empty($the_query)) { + echo '

' . "\n"; $edit_link = '' . $GLOBALS['strEdit'] . ''; echo ' ' . $GLOBALS['strSQLQuery'] . ' : [' . $edit_link . ']

' . htmlspecialchars($the_query) . '
' . "\n"; + echo '

' . "\n"; } - echo '

' . "\n"; echo '

' . "\n"; echo ' ' . $GLOBALS['strMySQLSaid'] . ' ' . htmlspecialchars($error_message) . "\n"; echo '

' . "\n"; @@ -491,7 +491,7 @@ if (!defined('__LIB_INC__')){ ?>  [BLOB] ' . "\n"; } else { if (strlen($row[$i]) > $GLOBALS['cfgLimitChars']) { - $row[$i] = substr($row[$i], 0, $cfgLimitChars) . '...'; + $row[$i] = substr($row[$i], 0, $GLOBALS['cfgLimitChars']) . '...'; } echo '  ' . htmlspecialchars($row[$i]) . ' ' . "\n"; }