mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-23 05:40:30 +03:00
Fixed update visitors list bug
This commit is contained in:
parent
69695e5c3f
commit
63ab503077
@ -124,7 +124,7 @@ function print_pending_threads($groupids, $since)
|
|||||||
"userid, shownmessageid, userAgent, (select vclocalname from {chatgroup} where {chatgroup}.groupid = {chatthread}.groupid) as groupname " .
|
"userid, shownmessageid, userAgent, (select vclocalname from {chatgroup} where {chatgroup}.groupid = {chatthread}.groupid) as groupname " .
|
||||||
"from {chatthread} where lrevision > :since " .
|
"from {chatthread} where lrevision > :since " .
|
||||||
($since <= 0
|
($since <= 0
|
||||||
? "AND istate <> :state_closed AND istate <> :state_left "
|
? "AND istate <> {$state_closed} AND istate <> {$state_left} "
|
||||||
: "") .
|
: "") .
|
||||||
(Settings::get('enablegroups') == '1'
|
(Settings::get('enablegroups') == '1'
|
||||||
? "AND (groupid is NULL" . ($groupids
|
? "AND (groupid is NULL" . ($groupids
|
||||||
@ -136,9 +136,7 @@ function print_pending_threads($groupids, $since)
|
|||||||
$rows = $db->query(
|
$rows = $db->query(
|
||||||
$query,
|
$query,
|
||||||
array(
|
array(
|
||||||
':since' => $since,
|
':since' => $since
|
||||||
':state_closed' => $state_closed,
|
|
||||||
':state_left' => $state_left
|
|
||||||
),
|
),
|
||||||
array('return_rows' => Database::RETURN_ALL_ROWS)
|
array('return_rows' => Database::RETURN_ALL_ROWS)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user