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

oops x2

parent 0ca12171
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

USE l3m;

CREATE TABLE `l3m_blog` (
  `id` int(11) NOT NULL,
  `time` datetime NOT NULL,
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ class BlogManager extends Base
		$this->slug = $this->slugify($this->title);

		$db = $this->dbConnect();
		$req = $db->prepare('INSERT INTO l3m_blog(time, title, slug, content, shortcontent) VALUES(:time, :title, :slug, :content, :shortContent)');
		$req = $db->prepare('INSERT INTO l3m_blog(time, title, slug, content, shortContent) VALUES(:time, :title, :slug, :content, :shortContent)');
		$req->execute([
			'time' => $this->time,
			'title' => $this->title,