summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonatasp2013-02-19 23:12:24 (GMT)
committer Joachim Noreiko2013-02-19 23:12:24 (GMT)
commita38302c74000dcb82db89281708c1359fc3ed408 (patch)
treea395a4d09ac9f2c5238742c80608674953150c45
parent5206b67146f2b429f96a0912819c31adafc491b4 (diff)
Issue #1921106 by donatasp: Fixed use of drupal_access_denied() causing 'cannot modify header information' errors.
-rw-r--r--includes/flag.pages.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/flag.pages.inc b/includes/flag.pages.inc
index 695c2bd..ce4bd5c 100644
--- a/includes/flag.pages.inc
+++ b/includes/flag.pages.inc
@@ -55,7 +55,7 @@ function flag_page($action, $flag, $entity_id) {
drupal_set_message($error, 'error');
}
if (isset($errors['access-denied'])) {
- drupal_access_denied();
+ return MENU_ACCESS_DENIED;
}
else {
drupal_goto();