Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3615 → Rev 3766

/trunk/jrest/bibliotheque/GestionMotsClesChemin.php
65,14 → 65,12
 
public function insererParCheminSiInexistant($mot_cle, $chemin_parent, $user_id) {
$mot_cle = self::simplifier($mot_cle);
$cheminMotCle = self::getCheminHarmonise($chemin_parent, $mot_cle);
$motCleP = Cel::db()->proteger($mot_cle);
$cheminMotCleP = Cel::db()->proteger($cheminMotCle);
$idUtilisateurP = Cel::db()->proteger($user_id);
 
$requete = "SELECT id ".
"FROM {$this->table_mots_cles} ".
"WHERE path = $cheminMotCleP AND name = $motCleP".
"WHERE name = $motCleP".
"AND user_id = $idUtilisateurP ".
' -- '.__FILE__.':'.__LINE__;
$infosMotCle = Cel::db()->requeter($requete);