support MySQL 4.0.x

This commit is contained in:
Marc Delisle
2005-10-14 14:49:43 +00:00
parent 1cda03955b
commit ec6fd52bfb

View File

@@ -279,7 +279,7 @@ function PMA_sqlQueryFormInsert( $query = '', $is_querywindow = false ) {
foreach ( $fields_list as $field ) {
echo '<option value="'
.PMA_backquote( htmlspecialchars( $field['Field'] ) ) . '"';
if ( ! empty( $field['Field'] ) ) {
if ( ! empty( $field['Field'] ) && isset($field['Comment']) ) {
echo ' title="' . htmlspecialchars( $field['Comment'] ) . '"';
}
echo '>' . htmlspecialchars( $field['Field'] ) . '</option>' . "\n";