rpicms

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

commit c456661af84dd86b49df56f5be40503721523d8c
parent 4d7eb7202bd766152ee41df59ed5c7c68d30a5ea
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 16 May 2015 13:55:53 +0200

fix sql

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 @@ -170,7 +170,7 @@ function shortText($string,$lenght) { //$longtext = $post_text; function deletePost($id) { - echo "id: $id"; + global $connection; $stmt = $connection->prepare('DELETE FROM posts WHERE id=?'); $stmt->bind_param('i',$id); $stmt->execute();