1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Deliver integers as integers.

This commit is contained in:
Tim Düsterhus 2012-05-02 20:27:16 +02:00
parent f7e4868488
commit 5c1f84eb1e

View File

@ -111,13 +111,13 @@ public function jsonify($raw = false) {
'formattedTime' => \wcf\util\DateUtil::format(\wcf\util\DateUtil::getDateTimeByTimestamp($this->time), 'H:i:s'),
'separator' => ($this->type == self::TYPE_NORMAL) ? ': ' : ' ',
'message' => $this->getFormattedMessage('text/plain'),
'sender' => $this->sender,
'sender' => (int) $this->sender,
'username' => $this->getUsername(),
'time' => $this->time,
'receiver' => $this->receiver,
'type' => $this->type,
'roomID' => $this->roomID,
'messageID' => $this->messageID
'time' => (int) $this->time,
'receiver' => (int) $this->receiver,
'type' => (int) $this->type,
'roomID' => (int) $this->roomID,
'messageID' => (int) $this->messageID
);
if ($raw) return $array;