From 77ae461fc661d740b3639a190d8bf93e44625f61 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 3 Mar 2016 15:24:59 -0800 Subject: [PATCH] Remove error message when 0 records returned. --- e107_handlers/e_parse_class.php | 6 ++++++ e107_plugins/forum/forum_class.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 35bb63b7b..f0ea3c878 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -4269,6 +4269,12 @@ return; foreach($this->nodesToDisableSC as $node) { $value = $node->C14N(); + + if(empty($value)) + { + continue; + } + $value = str_replace(" ","\r",$value); if($node->nodeName == 'pre') diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php index a4f563845..2337ec2da 100644 --- a/e107_plugins/forum/forum_class.php +++ b/e107_plugins/forum/forum_class.php @@ -865,7 +865,7 @@ class e107forum FROM `#forum_thread` WHERE thread_id = '.$id; } - if($sql->gen($qry)) + if($sql->gen($qry)!==false) { $tmp = $sql->fetch(); if($tmp)