mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40: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'),
|
'formattedTime' => \wcf\util\DateUtil::format(\wcf\util\DateUtil::getDateTimeByTimestamp($this->time), 'H:i:s'),
|
||||||
'separator' => ($this->type == self::TYPE_NORMAL) ? ': ' : ' ',
|
'separator' => ($this->type == self::TYPE_NORMAL) ? ': ' : ' ',
|
||||||
'message' => $this->getFormattedMessage('text/plain'),
|
'message' => $this->getFormattedMessage('text/plain'),
|
||||||
'sender' => $this->sender,
|
'sender' => (int) $this->sender,
|
||||||
'username' => $this->getUsername(),
|
'username' => $this->getUsername(),
|
||||||
'time' => $this->time,
|
'time' => (int) $this->time,
|
||||||
'receiver' => $this->receiver,
|
'receiver' => (int) $this->receiver,
|
||||||
'type' => $this->type,
|
'type' => (int) $this->type,
|
||||||
'roomID' => $this->roomID,
|
'roomID' => (int) $this->roomID,
|
||||||
'messageID' => $this->messageID
|
'messageID' => (int) $this->messageID
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($raw) return $array;
|
if ($raw) return $array;
|
||||||
|
Loading…
Reference in New Issue
Block a user