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

2nd oops

parent 62ee6975
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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');