From 32129798a3ac4d463d26f167989f5968f0c0838b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Fri, 29 Mar 2002 11:11:08 +0000 Subject: [PATCH] fixed bug #535984 - JS Error in tbl_change.php3 --- ChangeLog | 3 ++- tbl_change.php3 | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 152b80382..750f81cc3 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,8 +10,9 @@ $Source$ ("server" is always the first one). * tbl_properties.php3, lines 1212-1249: fixed bad dislays with Opera and removed trailing whitespaces. - * Documentaion.html: removed trailing whitespaces. + * Documentation.html: removed trailing whitespaces. * libraries/display_tbl.lib.php3: very very light optimizations. + * tbl_change.php3: fixed bug #535984 - JS Error in tbl_change.php3. 2002-03-28 Marc Delisle * sql.php3, bug #535648: bookmarks can't be saved on the second server. diff --git a/tbl_change.php3 b/tbl_change.php3 index e7f3a9fcf..224e777c1 100755 --- a/tbl_change.php3 +++ b/tbl_change.php3 @@ -253,9 +253,8 @@ for ($i = 0; $i < $fields_cnt; $i++) { // stored or retrieved" so it does not mean that the contents is // binary if ($cfgShowFunctionFields) { - if ((($cfgProtectBinary && $is_blob) - || ($cfgProtectBinary == 'all' && $is_binary)) - && !empty($data)) { + if (($cfgProtectBinary && $is_blob) + || ($cfgProtectBinary == 'all' && $is_binary)) { echo ' ' . $strBinary . '' . "\n"; } else if (strstr($row_table_def['True_Type'], 'enum') || strstr($row_table_def['True_Type'], 'set')) { echo ' --' . "\n"; @@ -288,7 +287,8 @@ for ($i = 0; $i < $fields_cnt; $i++) { // The null column // --------------- echo ' ' . "\n"; - if ($row_table_def['Null'] == 'YES') { + if (!(($cfgProtectBinary && $is_blob) || ($cfgProtectBinary == 'all' && $is_binary)) + && $row_table_def['Null'] == 'YES') { echo '