Fixed #41
This commit is contained in:
parent
0e8b7621ae
commit
123e467910
6
bans.php
6
bans.php
|
@ -65,17 +65,17 @@ function getBanlist() {
|
|||
$user = null;
|
||||
|
||||
if (!empty($ban['ip']))
|
||||
$user = censorIP($ban['ip']->toString());
|
||||
$user = censorIP((string)$ban['ip']);
|
||||
|
||||
if (!empty($ban['lastnickname']))
|
||||
$user = $ban['lastnickname']->toString();
|
||||
$user = (string)$ban['lastnickname'];
|
||||
|
||||
if (empty($user))
|
||||
$user = "<i>Unknown</i>";
|
||||
|
||||
|
||||
$reason = $ban['reason'];
|
||||
$invokername = $ban['invokername']->toString();
|
||||
$invokername = (string)$ban['invokername'];
|
||||
$duration = $ban['duration'];
|
||||
$createdepoch = $ban['created'];
|
||||
$expiresepoch = $ban['created'] + $duration;
|
||||
|
|
Loading…
Reference in New Issue