Loading site/model/BlogManager.php +1 −2 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ class BlogManager extends Base // todo vérifier qu'on poste pas un truc vide public function update(){ $db = $this->dbConnect(); $req = $db->prepare('UPDATE l3m_blog SET time = :time, title = :title, content = :content, shortContent = :shortContent, 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, Loading @@ -62,7 +62,6 @@ class BlogManager extends Base } public function send(){ if($this->time == ''){ $this->time = new datetime(); $this->time = $this->time->format('Y-m-d H:i:s'); Loading Loading
site/model/BlogManager.php +1 −2 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ class BlogManager extends Base // todo vérifier qu'on poste pas un truc vide public function update(){ $db = $this->dbConnect(); $req = $db->prepare('UPDATE l3m_blog SET time = :time, title = :title, content = :content, shortContent = :shortContent, 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, Loading @@ -62,7 +62,6 @@ class BlogManager extends Base } public function send(){ if($this->time == ''){ $this->time = new datetime(); $this->time = $this->time->format('Y-m-d H:i:s'); Loading