rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 4dd565a450a29f3d6a985ff1e0302cec6423ef43
parent c0bdbefcd509e6915126a404ba6197e57ed9ce01
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 16 Jan 2015 20:18:39 +0100

new try

Diffstat:
Mcore/backend/admin/blog/newpost.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php @@ -41,7 +41,7 @@ while (ob_get_status()) { $text = $_POST['content']; $category = $_POST['category']; - if ($resultat = $connection->query("INSERT INTO posts (id,text,title,author,date,category) VALUES ('$ids', '$text', '$title', '$author', 'DATE(date);', '$category')")) { + if ($resultat = $connection->query("INSERT INTO posts (id,text,title,author,date,category) VALUES ('$ids', '$text', '$title', '$author', NOW(), '$category')")) { } $connection->close(); ob_end_clean();