1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-11-01 23:14:58 +03:00

Use PMA_DBI_get_columns

This commit is contained in:
Michal Čihař
2011-08-04 15:43:07 +02:00
parent bd526dd94e
commit 398d5abbda

View File

@@ -2756,9 +2756,7 @@ function PMA_expandUserString($string, $escape = null, $updates = array()) {
/* Fetch fields list if required */
if (strpos($string, '@FIELDS@') !== false) {
$fields_list = PMA_DBI_fetch_result(
'SHOW COLUMNS FROM ' . PMA_backquote($GLOBALS['db'])
. '.' . PMA_backquote($GLOBALS['table']));
$fields_list = PMA_DBI_get_columns($GLOBALS['db'], $GLOBALS['table']);
$field_names = array();
foreach ($fields_list as $field) {