Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2060 → Rev 2061

/trunk/jrest/lib/GestionMotsClesChemin.php
264,12 → 264,19
public function deplacerMotCle($id_mot_cle, $id_pere, $id_utilisateur) {
 
$selection_chemin_pere = 'SELECT chemin FROM '.$this->table_mots_cles.' '.
'WHERE id_mot_cle = '.Cel::db()->proteger($id_pere);
$chemin_pere = "";
// si aucun id_père n'a été mentionné, c'est un déplacement vers
// la racine de l'arbre (qui n'existe pas)
if($id_pere != "") {
$selection_chemin_pere = 'SELECT chemin FROM '.$this->table_mots_cles.' '.
'WHERE id_mot_cle = '.Cel::db()->proteger($id_pere);
$chemin_pere = Cel::db()->requeter($selection_chemin_pere.' -- '.__FILE__.':'.__LINE__);
if(!empty($chemin_pere)) {
$chemin_pere = $chemin_pere[0]['chemin'];
}
}
$chemin_pere = Cel::db()->requeter($selection_chemin_pere.' -- '.__FILE__.':'.__LINE__);
$chemin_pere = $chemin_pere[0]['chemin'];
$selection_infos_mot_cle = 'SELECT chemin, mot_cle FROM '.$this->table_mots_cles.' '.
'WHERE id_mot_cle = '.Cel::db()->proteger($id_mot_cle);