bugfix: bans

This commit is contained in:
Michael Foster 2013-09-18 14:02:01 +10:00
parent 840e8cd093
commit cff15bd765

View File

@ -253,7 +253,7 @@ class Bans {
modLog('Created a new ' . modLog('Created a new ' .
($length > 0 ? preg_replace('/^(\d+) (\w+?)s?$/', '$1-$2', until($length)) : 'permanent') . ($length > 0 ? preg_replace('/^(\d+) (\w+?)s?$/', '$1-$2', until($length)) : 'permanent') .
' ban on ' . ' ban on ' .
($board ? '/' . $board . '/' : 'all boards') . ($ban_board ? '/' . $ban_board . '/' : 'all boards') .
' for ' . ' for ' .
(filter_var($mask, FILTER_VALIDATE_IP) !== false ? "<a href=\"?/IP/$mask\">$mask</a>" : $mask) . (filter_var($mask, FILTER_VALIDATE_IP) !== false ? "<a href=\"?/IP/$mask\">$mask</a>" : $mask) .
' (<small>#' . $pdo->lastInsertId() . '</small>)' . ' (<small>#' . $pdo->lastInsertId() . '</small>)' .