aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Lib/AbConfig.php2
-rw-r--r--include/zot.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Lib/AbConfig.php b/Zotlabs/Lib/AbConfig.php
index cab59abbd..cb5d96951 100644
--- a/Zotlabs/Lib/AbConfig.php
+++ b/Zotlabs/Lib/AbConfig.php
@@ -7,7 +7,7 @@ class AbConfig {
static public function Load($chan,$xhash,$family = '') {
if($family)
- $where = sprintf(" and family = '%s' ",dbesc($family));
+ $where = sprintf(" and cat = '%s' ",dbesc($family));
$r = q("select * from abconfig where chan = %d and xchan = '%s' $where",
intval($chan),
dbesc($xhash)
diff --git a/include/zot.php b/include/zot.php
index cc892e13b..dec3dc2bc 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -468,9 +468,9 @@ function zot_refresh($them, $channel = null, $force = false) {
}
if(! $my_perms) {
- $x = \Zotlabs\Access\Permissions::FilledAutoperms($channel['channel_id']);
- if($x) {
- $my_perms = $x;
+ $m = \Zotlabs\Access\Permissions::FilledAutoperms($channel['channel_id']);
+ if($m) {
+ $my_perms = $m;
}
}