|
|
|
@ -446,12 +446,12 @@ function valeur_colonne_table_dist($type, $col, $id) {
|
|
|
|
|
|
|
|
|
|
$row = false; |
|
|
|
|
if (include_spip('base/abstract_sql') and function_exists('sql_fetsel')) { |
|
|
|
|
$row = sql_fetsel('`' . implode($col, '`, `').'`', $nom_table, $where, '', '', '', '', $distant); |
|
|
|
|
$row = sql_fetsel('`' . implode('`, `', $col).'`', $nom_table, $where, '', '', '', '', $distant); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
// legacy code |
|
|
|
|
if ($s = spip_query( |
|
|
|
|
'SELECT `' . implode($col, '`, `') . |
|
|
|
|
'SELECT `' . implode('`, `', $col) . |
|
|
|
|
'` FROM ' . $nom_table . ' WHERE ' . $where, |
|
|
|
|
$distant |
|
|
|
|
)) { |
|
|
|
|