rpicms

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

commit 85cb41b863c52f41393884f1bdef74db5a52291a
parent 1a607f39e1b0b2874806bad443372ddfb4e3d5c5
Author: MTRNord <mtrnord1@gmail.com>
Date:   Wed, 18 Mar 2015 21:50:42 +0100

fix bug :D

Diffstat:
Mcore/api/v1/DbHandler.class.php | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/core/api/v1/DbHandler.class.php b/core/api/v1/DbHandler.class.php @@ -248,7 +248,11 @@ class DbHandler { $stmt->bind_param("i", $post_id); if ($stmt->execute()) { $post = $stmt->get_result()->fetch_assoc(); - $post["text"] = html_entity_decode($post["text"]); + if ($post["text"] != NULL){ + $post["text"] = html_entity_decode($post["text"]); + }else{ + $post["text"] = NULL; + } $stmt->close(); return $post; } else {