From c1b633843fcace1cfa88ee8e727a344308f8f57f Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 11 Oct 2012 11:42:09 +0000 Subject: [PATCH] Fix bug with NULL for message's sender name --- src/messenger/webim/libs/classes/thread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messenger/webim/libs/classes/thread.php b/src/messenger/webim/libs/classes/thread.php index 711ab303..b1d3480e 100644 --- a/src/messenger/webim/libs/classes/thread.php +++ b/src/messenger/webim/libs/classes/thread.php @@ -727,7 +727,7 @@ Class Thread { ':threadid' => $this->id, ':kind' => $kind, ':message' => $message, - ':name' => ($from ? $from : "null"), + ':name' => ($from ? $from : NULL), ':agentid' => ($opid ? $opid : 0), ':created' => ($time ? $time : time()) );