commit c2d384431857763b7b523b4d3f83c6e54b89e96a
parent b7f199835f313340f495ab0197dd5f43c8158396
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 16 Jan 2015 19:50:59 +0100
fix db in newposts.php
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php
@@ -44,11 +44,11 @@ while (ob_get_status()) {
echo $category;
echo "test";
- if (!empty($author) || !empty($title) || !empty($text) || !empty($category)) {
+ //if (!empty($author) || !empty($title) || !empty($text) || !empty($category)) {
if ($resultat = $connection->query("INSERT INTO posts (id,text,title,author,date,category) VALUES ('$ids', '$text', '$title', '$author', 'date('Y-m-d H:i:s')', '$category')")) {
$resultat->close();
}
- }
+ //}
ob_end_clean();
}
header( "Location: ../../../../" );