Browse Source

Deprecated -- : bon ordre de implode().

g0uz-patch-1
Matthieu Marcillaud 2 years ago
parent
commit
eba242f67f
  1. 4
      inc/crayons.php

4
inc/crayons.php

@ -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
)) {

Loading…
Cancel
Save