From fe9a23f542bc56c1c0b6dc30257418e38ff7bd3a Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Sat, 08 Jun 2013 18:57:40 -0400
Subject: [PATCH] - Fixed FS#2936 - Please check and limit username input length.

---
 interface/web/help/faq_list.php |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/interface/web/help/faq_list.php b/interface/web/help/faq_list.php
index ff3ad37..df69273 100644
--- a/interface/web/help/faq_list.php
+++ b/interface/web/help/faq_list.php
@@ -8,8 +8,8 @@
 
 // Check the module permissions
 if(!stristr($_SESSION['s']['user']['modules'],'help')) {
-    header('Location: ../index.php');
-    die();
+	header('Location: ../index.php');
+	die();
 }
 
 // Loading the class
@@ -29,9 +29,9 @@
 $app->listform_actions->SQLExtWhere = "hf_section = $hf_section";
 
 
-$res = $app->db->queryOneRecord("SELECT hfs_name FROM help_faq_sections WHERE hfs_id=$hf_section");
+if($hf_section) $res = $app->db->queryOneRecord("SELECT hfs_name FROM help_faq_sections WHERE hfs_id=$hf_section");
 // Start the form rendering and action ahndling
 echo "<h2>FAQ: ".$res['hfs_name']."</h2>";
-$app->listform_actions->onLoad();
+if($hf_section) $app->listform_actions->onLoad();
 
 ?>

--
Gitblit v1.9.1