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:
parent
f7e4868488
commit
5c1f84eb1e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user