rpicms

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

commit 9eb4aaffefab116860d552e5650c32b71787a8ca
parent b81ce984d0f39971353ea1d4f2f4fb1cd2dedc88
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 16 May 2015 14:08:18 +0200

fix sql string

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

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -171,7 +171,7 @@ function shortText($string,$lenght) { function deletePost($id) { global $connection; - if ($connection->query(DELETE FROM posts WHERE id=$id) === TRUE) { + if ($connection->query("DELETE FROM posts WHERE id=$id") === TRUE) { echo "Record deleted successfully"; } else { echo "Error deleting record: " . $connection->error;