patch #2496403 [display] Multi-row change with "]"

This commit is contained in:
Marc Delisle
2009-01-13 21:59:45 +00:00
parent 9f0ec1b599
commit dd898010ba
4 changed files with 5 additions and 3 deletions

View File

@@ -285,7 +285,7 @@ foreach ($loop_array as $rowcount => $primary_key) {
} else {
// build update query
$query[] = 'UPDATE ' . PMA_backquote($GLOBALS['db']) . '.' . PMA_backquote($GLOBALS['table'])
. ' SET ' . implode(', ', $query_values) . ' WHERE ' . $primary_key . ' LIMIT 1';
. ' SET ' . implode(', ', $query_values) . ' WHERE ' . str_replace(']', ']', $primary_key) . ' LIMIT 1';
}
}