This commit is contained in:
Wruczek 2017-04-29 21:41:31 +02:00
parent 0e8b7621ae
commit 123e467910
1 changed files with 3 additions and 3 deletions

View File

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