@@ -981,8 +981,9 @@ discard block |
||
| 981 | 981 | static $tables = array(); |
| 982 | 982 | if (!isset($tables[$serveur])){ |
| 983 | 983 | $tables[$serveur] = array(); |
| 984 | - if (!function_exists("sql_alltable")) |
|
| 985 | - include_spip("base/abstract_sql"); |
|
| 984 | + if (!function_exists("sql_alltable")) { |
|
| 985 | + include_spip("base/abstract_sql"); |
|
| 986 | + } |
|
| 986 | 987 | $ts = sql_alltable('%',$serveur); // toutes les tables |
| 987 | 988 | foreach ($ts as $t){ |
| 988 | 989 | $tables[$serveur][$t] = $t; |
@@ -1384,8 +1385,7 @@ discard block |
||
| 1384 | 1385 | 'champ' => $parent_methode['champ'], |
| 1385 | 1386 | 'table' => $table, |
| 1386 | 1387 | ); |
| 1387 | - } |
|
| 1388 | - elseif (isset($parent_methode['champ_type'])) { |
|
| 1388 | + } elseif (isset($parent_methode['champ_type'])) { |
|
| 1389 | 1389 | $parent = array( |
| 1390 | 1390 | 'objet' => $ligne[$parent_methode['champ_type']], |
| 1391 | 1391 | 'id_objet' => intval($ligne[$parent_methode['champ']]), |