Fixed bug with wrong placeholders count in the 'thread_by_id' function

This commit is contained in:
Dmitriy Simushev 2012-09-05 14:55:21 +00:00
parent 031dbdc2b2
commit 4db2ce5175

View File

@ -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)
);