aboutsummaryrefslogtreecommitdiffstats
path: root/mod/chat.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-06 23:10:14 -0800
committerfriendica <info@friendica.com>2014-02-06 23:10:14 -0800
commitcda1224066f0bbf63dbd0b0e69a78c8e27c18afd (patch)
treebce10c93182c813c1fa0d01a983c115fb867ddc1 /mod/chat.php
parentb779400218c2360a4354cfbecda620c8e24bfb87 (diff)
downloadvolse-hubzilla-cda1224066f0bbf63dbd0b0e69a78c8e27c18afd.tar.gz
volse-hubzilla-cda1224066f0bbf63dbd0b0e69a78c8e27c18afd.tar.bz2
volse-hubzilla-cda1224066f0bbf63dbd0b0e69a78c8e27c18afd.zip
missing element in new chatroom link
Diffstat (limited to 'mod/chat.php')
-rw-r--r--mod/chat.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/chat.php b/mod/chat.php
index e3725830c..872571f8c 100644
--- a/mod/chat.php
+++ b/mod/chat.php
@@ -79,6 +79,9 @@ function chat_post(&$a) {
function chat_content(&$a) {
+ if(local_user())
+ $channel = $a->get_channel();
+
$observer = get_observer_hash();
if(! $observer) {
notice( t('Permission denied.') . EOL);
@@ -129,7 +132,7 @@ function chat_content(&$a) {
if(local_user() && argc() > 2 && argv(2) === 'new') {
- $channel = $a->get_channel();
+
$channel_acl = array(
'allow_cid' => $channel['channel_allow_cid'],
'allow_gid' => $channel['channel_allow_gid'],