mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-12 09:13:07 +01:00
Prevent bug in enumerating bans when post json is empty
This commit is contained in:
parent
6b7311fad2
commit
8dd8f9390e
@ -187,8 +187,10 @@ class Bans {
|
|||||||
|
|
||||||
if ($ban['post']) {
|
if ($ban['post']) {
|
||||||
$post = json_decode($ban['post']);
|
$post = json_decode($ban['post']);
|
||||||
|
if ($post) {
|
||||||
$ban['message'] = $post->body;
|
$ban['message'] = $post->body;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
unset($ban['ipstart'], $ban['ipend'], $ban['post'], $ban['creator']);
|
unset($ban['ipstart'], $ban['ipend'], $ban['post'], $ban['creator']);
|
||||||
|
|
||||||
if ($board_access === false || in_array ($ban['board'], $board_access)) {
|
if ($board_access === false || in_array ($ban['board'], $board_access)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user