bans.php: do not deserialize post that does not exist

This commit is contained in:
Zankaria authored and Zankaria committed 2024-08-11 12:04:12 +02:00
1 parent 1e0a95ce83
commit ffe855222e
1 file changed
+2
+2
View File
@@ -85,7 +85,9 @@ class Bans {
if ($query->rowCount() == 0) {
return null;
} else {
if ($ret['post']) {
$ret['post'] = json_decode($ret['post'], true);
}
return $ret;
}
}