aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/abook.php2
-rw-r--r--mod/settings.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/abook.php b/mod/abook.php
index 51cebd160..3d73217f1 100644
--- a/mod/abook.php
+++ b/mod/abook.php
@@ -509,7 +509,7 @@ EOT;
}
- $r = q("SELECT abook.*, xchan.* FROM abook left join xchan on abook.abook_chan = xchan.xchan_hash
+ $r = q("SELECT abook.*, xchan.* FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash
WHERE abook_channel = %d and not (abook_flags & %d) $sql_extra $sql_extra2 ORDER BY xchan_name LIMIT %d , %d ",
intval(local_user()),
intval(ABOOK_FLAG_SELF),
diff --git a/mod/settings.php b/mod/settings.php
index 6c31242f6..3e8134d5c 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -719,7 +719,7 @@ function settings_content(&$a) {
$channel = $a->get_channel();
- global $global_perms;
+ $global_perms = get_perms();
$perms = perms_text();
$permiss = array();