From 84822a86f5bde6033df2f43cee41837f996ef960 Mon Sep 17 00:00:00 2001 From: czaks Date: Thu, 9 Oct 2014 01:21:23 +0200 Subject: [PATCH] create.php: make ``boards`` insert schema agnostic --- create.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 create.php diff --git a/create.php b/create.php old mode 100644 new mode 100755 index 0807f9e0..673f8b7c --- a/create.php +++ b/create.php @@ -107,7 +107,7 @@ $query->bindValue(':type', 20); $query->bindValue(':boards', $uri); $query->execute() or error(db_error($query)); -$query = prepare('INSERT INTO ``boards`` VALUES (:uri, :title, :subtitle, NULL, NULL)'); +$query = prepare('INSERT INTO ``boards`` (`uri`, `title`, `subtitle`) VALUES (:uri, :title, :subtitle)'); $query->bindValue(':uri', $_POST['uri']); $query->bindValue(':title', $_POST['title']); $query->bindValue(':subtitle', $_POST['subtitle']);