mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 09:35:11 +00:00
ifpending repaired again. Hope it works as intended now.
This commit is contained in:
parent
98a942bd95
commit
b472cc0fd3
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ function connections_content(&$a) {
|
||||||
nav_set_selected('intros');
|
nav_set_selected('intros');
|
||||||
break;
|
break;
|
||||||
case 'ifpending':
|
case 'ifpending':
|
||||||
$r = q("SELECT COUNT(abook.abook_id) AS total FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash where abook_channel = %d and (abook_flags & %d) and not (abook_flags & %d) and not (xchan_flags & %d )",
|
$r = q("SELECT COUNT(abook.abook_id) AS total FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash where abook_channel = %d and (abook_flags & %d) and not ((abook_flags & %d) or (xchan_flags & %d))",
|
||||||
intval(local_user()),
|
intval(local_user()),
|
||||||
intval(ABOOK_FLAG_PENDING),
|
intval(ABOOK_FLAG_PENDING),
|
||||||
intval(ABOOK_FLAG_SELF|ABOOK_FLAG_IGNORED),
|
intval(ABOOK_FLAG_SELF|ABOOK_FLAG_IGNORED),
|
||||||
|
|
Loading…
Reference in a new issue