fix undefined time value for pending transactions

This commit is contained in:
ghost 2024-02-21 11:04:22 +02:00
parent 4539cdfd13
commit ed9b29da14

View File

@ -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
]; ];
} }