From 4db2ce51756852cf34c2ddd4408382c82b8f091a Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Wed, 5 Sep 2012 14:55:21 +0000 Subject: [PATCH] Fixed bug with wrong placeholders count in the 'thread_by_id' function --- src/messenger/webim/libs/chat.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/messenger/webim/libs/chat.php b/src/messenger/webim/libs/chat.php index b1a6e529..1f385f6a 100644 --- a/src/messenger/webim/libs/chat.php +++ b/src/messenger/webim/libs/chat.php @@ -684,8 +684,7 @@ function thread_by_id($id) "nextagent,shownmessageid,userid, " . "userAgent,groupid from {chatthread} where threadid = :threadid", array( - ':threadid' => $id, - ':now' => time() + ':threadid' => $id ), array('return_rows' => Database::RETURN_ONE_ROW) );