From e3b0b5ed52a2ad4f3cdd0c8cd1911a5345e50586 Mon Sep 17 00:00:00 2001 From: Habeas Codice Date: Thu, 20 Nov 2014 04:55:01 -0800 Subject: implicit boolean, formatting --- include/identity.php | 4 ++-- 1 file 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) ); -- cgit v1.2.3