diff options
author | friendica <info@friendica.com> | 2012-09-25 17:57:20 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-09-25 17:57:20 -0700 |
commit | fbafd92f7f7b96b215b98f30de9a1ccbdb3479be (patch) | |
tree | f1f6739d513ac297fbd14162b8377cc4cf84c784 /mod/home.php | |
parent | dd5725c2725b742473ce285dce8573da37fb8053 (diff) | |
download | volse-hubzilla-fbafd92f7f7b96b215b98f30de9a1ccbdb3479be.tar.gz volse-hubzilla-fbafd92f7f7b96b215b98f30de9a1ccbdb3479be.tar.bz2 volse-hubzilla-fbafd92f7f7b96b215b98f30de9a1ccbdb3479be.zip |
moving a lot of structure around. 'entity' is now 'channel'
Diffstat (limited to 'mod/home.php')
-rw-r--r-- | mod/home.php | 6 |
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']); }} |