1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-31 12:23:48 +01:00

Prevent bug in enumerating bans when post json is empty

This commit is contained in:
8chan 2015-05-05 22:41:21 -07:00
parent 6b7311fad2
commit 8dd8f9390e

View File

@ -187,7 +187,9 @@ class Bans {
if ($ban['post']) {
$post = json_decode($ban['post']);
$ban['message'] = $post->body;
if ($post) {
$ban['message'] = $post->body;
}
}
unset($ban['ipstart'], $ban['ipend'], $ban['post'], $ban['creator']);