Browse Source

fix undefined time value for pending transactions

main 1.12.0
ghost 10 months ago
parent
commit
ed9b29da14
  1. 2
      src/Controller/RoomController.php

2
src/Controller/RoomController.php

@ -1174,7 +1174,7 @@ class RoomController extends AbstractController
'txid' => $data['txid'], 'txid' => $data['txid'],
'key' => $data['key'], 'key' => $data['key'],
'message' => $data['value'], 'message' => $data['value'],
'time' => $transaction['time'], 'time' => isset($transaction['time']) ? $transaction['time'] : time(),
'user' => $user 'user' => $user
]; ];
} }

Loading…
Cancel
Save