forked from GithubBackups/vichan
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) {
|
if ($query->rowCount() == 0) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
$ret['post'] = json_decode($ret['post'], true);
|
if ($ret['post']) {
|
||||||
|
$ret['post'] = json_decode($ret['post'], true);
|
||||||
|
}
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user