aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-09-28 00:02:58 +0200
committerMax Kostikov <max@kostikov.co>2018-09-28 00:02:58 +0200
commit3379f6f79339b7e6b77cd2d8a84e484585a1785a (patch)
tree8a3341515fdeec83216f0b763b00d0a97b226fdf /Zotlabs/Module
parent80b47734a7a89f4889e8b9fc8e8879efa5f8431d (diff)
downloadvolse-hubzilla-3379f6f79339b7e6b77cd2d8a84e484585a1785a.tar.gz
volse-hubzilla-3379f6f79339b7e6b77cd2d8a84e484585a1785a.tar.bz2
volse-hubzilla-3379f6f79339b7e6b77cd2d8a84e484585a1785a.zip
Update Channel.php
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Settings/Channel.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Settings/Channel.php b/Zotlabs/Module/Settings/Channel.php
index 27a8e695d..73cb4decb 100644
--- a/Zotlabs/Module/Settings/Channel.php
+++ b/Zotlabs/Module/Settings/Channel.php
@@ -63,7 +63,7 @@ class Channel {
}
$hide_presence = 1 - (intval($role_permissions['online']));
if($role_permissions['default_collection']) {
- $r = q("select hash from groups where uid = %d and gname = '%s' limit 1",
+ $r = q("select hash from pgrp where uid = %d and gname = '%s' limit 1",
intval(local_channel()),
dbesc( t('Friends') )
);
@@ -71,7 +71,7 @@ class Channel {
require_once('include/group.php');
group_add(local_channel(), t('Friends'));
group_add_member(local_channel(),t('Friends'),$channel['channel_hash']);
- $r = q("select hash from groups where uid = %d and gname = '%s' limit 1",
+ $r = q("select hash from pgrp where uid = %d and gname = '%s' limit 1",
intval(local_channel()),
dbesc( t('Friends') )
);