rpicms

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

commit 784295fe1136333b06929e3ea857114c1cbcf429
parent 9eb4aaffefab116860d552e5650c32b71787a8ca
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 16 May 2015 14:09:53 +0200

hmm

Diffstat:
Mcore/backend/blog/posts.php | 15++-------------
1 file changed, 2 insertions(+), 13 deletions(-)

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