diff options
Diffstat (limited to 'inc/actions.php')
-rw-r--r-- | inc/actions.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/inc/actions.php b/inc/actions.php index e61b1add3..900409a90 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -589,10 +589,14 @@ function act_subscription($act){ hsc($INFO['userinfo']['name']), prettyprint_id($target))); } - $INFO['subscribed'] = get_info_subscribed(); msg(sprintf($lang["subscr_{$action}_success"], hsc($INFO['userinfo']['name']), prettyprint_id($target)), 1); - return $act; + global $ID; + act_redirect($ID, $act); + + // Assure that we have valid data if act_redirect somehow fails. + $INFO['subscribed'] = get_info_subscribed(); + return 'show'; } /** |