ecrire/action/editer_objet.php 1 location
|
@@ 68-71 (lines=4) @@
|
| 65 |
|
$table_sql = table_objet_sql($objet); |
| 66 |
|
$trouver_table = charger_fonction('trouver_table','base'); |
| 67 |
|
$desc = $trouver_table($table_sql); |
| 68 |
|
if (!$desc OR !isset($desc['field'])) { |
| 69 |
|
spip_log("Objet $objet inconnu dans objet_modifier",_LOG_ERREUR); |
| 70 |
|
return _L("Erreur objet $objet inconnu"); |
| 71 |
|
} |
| 72 |
|
include_spip('inc/modifier'); |
| 73 |
|
|
| 74 |
|
$champ_date = ''; |
ecrire/req/sqlite_generique.php 1 location
|
@@ 1643-1646 (lines=4) @@
|
| 1640 |
|
$meme_table = ($table_origine==$table_destination); |
| 1641 |
|
|
| 1642 |
|
$def_origine = sql_showtable($table_origine, false, $serveur); |
| 1643 |
|
if (!$def_origine OR !isset($def_origine['field'])){ |
| 1644 |
|
spip_log("Alter table impossible sur $table_origine : table non trouvee",'sqlite'._LOG_ERREUR); |
| 1645 |
|
return false; |
| 1646 |
|
} |
| 1647 |
|
|
| 1648 |
|
|
| 1649 |
|
$table_tmp = $table_origine.'_tmp'; |