Skip to content
Snippets Groups Projects
Commit 24049afd authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

fix

parent 81ca3f5b
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ public function __construct($item){
}else{
$this->id=$item;
}
$query = Connexion::pdo()->prepare("SELECT * FROM site_itemsAssoc WHERE label=?");
$query = Connexion::pdo()->prepare("SELECT * FROM site_itemsAssoc WHERE name=?");
$query->execute(array($this->id));
$result= $query->fetch(PDO::FETCH_ASSOC);
$this->label = $result['label'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment