mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 09:20:58 +01:00
bans.php: do not deserialize post that does not exist
This commit is contained in:
parent
1e0a95ce83
commit
ffe855222e
@ -85,7 +85,9 @@ class Bans {
|
||||
if ($query->rowCount() == 0) {
|
||||
return null;
|
||||
} else {
|
||||
$ret['post'] = json_decode($ret['post'], true);
|
||||
if ($ret['post']) {
|
||||
$ret['post'] = json_decode($ret['post'], true);
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user