aboutsummaryrefslogtreecommitdiffstats
path: root/comments.php
diff options
context:
space:
mode:
Diffstat (limited to 'comments.php')
-rw-r--r--comments.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/comments.php b/comments.php
index b75dc190b..5520e7933 100644
--- a/comments.php
+++ b/comments.php
@@ -28,6 +28,11 @@ define('PHPWG_ROOT_PATH','./');
include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php');
+if (!$conf['activate_comments'])
+{
+ page_not_found(null);
+}
+
// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok |
// +-----------------------------------------------------------------------+