aboutsummaryrefslogtreecommitdiff
path: root/view/feedback.php
diff options
context:
space:
mode:
authorMaZderMind2015-03-31 17:15:53 +0200
committerMaZderMind2015-03-31 17:15:53 +0200
commit2fc4bc9dca86d5a96a812cd23f1f5096f2dcc725 (patch)
tree6f8fd1b2368de005ae5f61e03e99a5b6d1b711e2 /view/feedback.php
parentbeb6da0a82c639b117e0e7521475a46731e68071 (diff)
Move Feedback-Availability Checks to View
Diffstat (limited to 'view/feedback.php')
-rw-r--r--view/feedback.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/view/feedback.php b/view/feedback.php
index 73b0241..f603dbf 100644
--- a/view/feedback.php
+++ b/view/feedback.php
@@ -1,6 +1,9 @@
<?php
$feedback = new Feedback();
+if(!$feedback->isEnabled())
+ throw new NotFoundException('Feedback is disabled');
+
$info = $_POST;
if(!$feedback->validate($info)) {