diff options
author | root <root@rlyeh-military-affairs> | 2014-01-25 23:06:44 +0000 |
---|---|---|
committer | root <root@rlyeh-military-affairs> | 2014-01-25 23:06:44 +0000 |
commit | 8b399b2fb8f2f063eaa159b2c9f26b9a3912f5da (patch) | |
tree | 7e7d4f7df40c07a0ba58fac5089714d7d4f003fc | |
parent | 6911439f0e5bce19cdefb722378d695f5f7db65e (diff) | |
download | volse-hubzilla-8b399b2fb8f2f063eaa159b2c9f26b9a3912f5da.tar.gz volse-hubzilla-8b399b2fb8f2f063eaa159b2c9f26b9a3912f5da.tar.bz2 volse-hubzilla-8b399b2fb8f2f063eaa159b2c9f26b9a3912f5da.zip |
Typo
-rw-r--r-- | include/security.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/security.php b/include/security.php index b2c613108..4a15e52af 100644 --- a/include/security.php +++ b/include/security.php @@ -60,7 +60,8 @@ function change_channel($change_channel) { intval(get_account_id()), intval(PAGE_REMOVED) ); - if($r) { + + if($r) { $hash = $r[0]['channel_hash']; $_SESSION['uid'] = intval($r[0]['channel_id']); get_app()->set_channel($r[0]); @@ -74,7 +75,7 @@ function change_channel($change_channel) { ); if($x) { $_SESSION['my_url'] = $x[0]['xchan_url']; - $_SESSION['my_address'] = $x[0]['channel_address'] . '@' . substr(get_app()->get_baseurl(),strpos(get_app()->get_baseurl(),'://')+3); + $_SESSION['my_address'] = $r[0]['channel_address'] . '@' . substr(get_app()->get_baseurl(),strpos(get_app()->get_baseurl(),'://')+3); get_app()->set_observer($x[0]); get_app()->set_perms(get_all_perms(local_user(),$hash)); |