aboutsummaryrefslogtreecommitdiffstats
path: root/mod/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/home.php')
-rw-r--r--mod/home.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/home.php b/mod/home.php
index b96e3f29f..a49ce567e 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -6,8 +6,10 @@ function home_init(&$a) {
$ret = array();
call_hooks('home_init',$ret);
- if(local_user() && ($a->identity['entity_address']))
- goaway( $a->get_baseurl() . '/profile/' . $a->identity['entity_address']);
+ $channel = $a->get_channel();
+
+ if(local_user() && $channel && $channel['channel_address']))
+ goaway( $a->get_baseurl() . '/profile/' . $channel['channel_address']);
}}