@@ -56,13 +51,12 @@ class BlogManager extends Base
// todo vérifier qu'on poste pas un truc vide
publicfunctionupdate(){
$db=$this->dbConnect();
$req=$db->prepare('UPDATE l3m_blog SET time = :time, title = :title, content = :content, shortContent = :shortContent, comments = :comments WHERE id = :id');
$req=$db->prepare('UPDATE l3m_blog SET time = :time, title = :title, content = :content, shortContent = :shortContent, WHERE id = :id');
$req->execute([
'time'=>$this->time,
'title'=>$this->title,
'content'=>$this->content,
'shortContent'=>$this->shortContent,
'comments'=>$this->comments,
'id'=>$this->id
]);
}
...
...
@@ -81,13 +75,12 @@ class BlogManager extends Base
$this->shortContent='Ce billet de blog ne dispose d\'aucune description.';