summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/actions.php b/inc/actions.php
index b447b65e1..5141f1941 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -596,6 +596,9 @@ function act_subscription($act){
global $INFO;
global $ID;
+ // subcriptions work for logged in users only
+ if(!$_SERVER['REMOTE_USER']) return 'show';
+
// get and preprocess data.
$params = array();
foreach(array('target', 'style', 'action') as $param) {