1
0
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:
Zankaria 2024-07-14 19:13:51 +02:00 committed by Zankaria
parent 1e0a95ce83
commit ffe855222e

View File

@ -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;
}
}