From 412eec8a5fb6208d361c033653015ff3c74ad3ab Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Thu, 11 Jul 2013 10:59:00 -0400
Subject: [PATCH] - Improved recognition of when a service (Apache, nginx, etc.) was really restarted/reloaded successfully. Checking port 80 is not enough because nginx reloads silently, ignoring faulty configuration files, but returns a value > 0. If we don't check the return value, nginx will refuse to start when someone issues a restart the next time.
---
interface/web/help/faq_sections_list.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/interface/web/help/faq_sections_list.php b/interface/web/help/faq_sections_list.php
index a24c879..e6f9979 100644
--- a/interface/web/help/faq_sections_list.php
+++ b/interface/web/help/faq_sections_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
--
Gitblit v1.9.1