aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHabeas Codice <habeascodice@federated.social>2014-11-20 04:55:01 -0800
committerHabeas Codice <habeascodice@federated.social>2014-11-20 04:55:01 -0800
commite3b0b5ed52a2ad4f3cdd0c8cd1911a5345e50586 (patch)
tree8e6561cfdeba4faa47a5e44a241aa6f7c10e793c
parentc8af19c69c03b39d5eded833a2d9d8ed9ab5826c (diff)
downloadvolse-hubzilla-e3b0b5ed52a2ad4f3cdd0c8cd1911a5345e50586.tar.gz
volse-hubzilla-e3b0b5ed52a2ad4f3cdd0c8cd1911a5345e50586.tar.bz2
volse-hubzilla-e3b0b5ed52a2ad4f3cdd0c8cd1911a5345e50586.zip
implicit boolean, formatting
-rw-r--r--include/identity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/identity.php b/include/identity.php
index a238959a5..11da745da 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -1473,7 +1473,7 @@ function get_channel_by_nick($nick) {
function identity_selector() {
if(local_user()) {
- $r = q("select channel.*, xchan.* from channel left join xchan on channel.channel_hash = xchan.xchan_hash where channel.channel_account_id = %d and not ( channel_pageflags & %d )>0 order by channel_name ",
+ $r = q("select channel.*, xchan.* from channel left join xchan on channel.channel_hash = xchan.xchan_hash where channel.channel_account_id = %d and (channel_pageflags & %d) = 0 order by channel_name ",
intval(get_account_id()),
intval(PAGE_REMOVED)
);
@@ -1573,7 +1573,7 @@ function notifications_on($channel_id,$value) {
function get_channel_default_perms($uid) {
- $r = q("select abook_my_perms from abook where abook_channel = %d and abook_flags & %d limit 1",
+ $r = q("select abook_my_perms from abook where abook_channel = %d and (abook_flags & %d) > 0 limit 1",
intval($uid),
intval(ABOOK_FLAG_SELF)
);