From 63ab5030775836f1e2ada59e753b61e60f6d37e4 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Tue, 24 Jul 2012 13:07:22 +0000 Subject: [PATCH] Fixed update visitors list bug --- src/messenger/webim/operator/update.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/messenger/webim/operator/update.php b/src/messenger/webim/operator/update.php index e40954cd..8640ec31 100644 --- a/src/messenger/webim/operator/update.php +++ b/src/messenger/webim/operator/update.php @@ -124,7 +124,7 @@ function print_pending_threads($groupids, $since) "userid, shownmessageid, userAgent, (select vclocalname from {chatgroup} where {chatgroup}.groupid = {chatthread}.groupid) as groupname " . "from {chatthread} where lrevision > :since " . ($since <= 0 - ? "AND istate <> :state_closed AND istate <> :state_left " + ? "AND istate <> {$state_closed} AND istate <> {$state_left} " : "") . (Settings::get('enablegroups') == '1' ? "AND (groupid is NULL" . ($groupids @@ -136,9 +136,7 @@ function print_pending_threads($groupids, $since) $rows = $db->query( $query, array( - ':since' => $since, - ':state_closed' => $state_closed, - ':state_left' => $state_left + ':since' => $since ), array('return_rows' => Database::RETURN_ALL_ROWS) );