diff --git a/ChangeLog b/ChangeLog index 61c4c33ae..37064f0fa 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ $Source$ * libraries/config_import.lib.php3: - Fixed an inconsitence; - Fixed an "undefined index" error. + * tbl_alter.php3: Fixed bug #615888 (error in column naming). 2002-09-27 Loïc Chapeaux * db_details_qbe.php3: PHP3 fixes & coding standards. diff --git a/tbl_alter.php3 b/tbl_alter.php3 index a9589bf0a..1317d15a0 100755 --- a/tbl_alter.php3 +++ b/tbl_alter.php3 @@ -44,15 +44,15 @@ if (isset($submit)) { // Some fields have been urlencoded or double quotes have been translated // to """ in tbl_properties.php3 $field_orig[$i] = urldecode($field_orig[$i]); - if (str_replace('"', '"', $field_orig[$i]) == $field_name[$i]) { + if (strcmp(str_replace('"', '"', $field_orig[$i]), $field_name[$i]) == 0) { $field_name[$i] = $field_orig[$i]; } $field_default_orig[$i] = urldecode($field_default_orig[$i]); - if (str_replace('"', '"', $field_default_orig[$i]) == $field_default[$i]) { + if (strcmp(str_replace('"', '"', $field_default_orig[$i]), $field_default[$i])) { $field_default[$i] = $field_default_orig[$i]; } $field_length_orig[$i] = urldecode($field_length_orig[$i]); - if (str_replace('"', '"', $field_length_orig[$i]) == $field_length[$i]) { + if (strcmp(str_replace('"', '"', $field_length_orig[$i]), $field_length[$i])) { $field_length[$i] = $field_length_orig[$i]; } if (!isset($query)) {