Commit ffd2c7b2 authored by Corentin Bettiol's avatar Corentin Bettiol 💻

2nd oops

parent 62ee6975
......@@ -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,
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment