Update Post\UserInfoFromIP

This commit is contained in:
Visman 2021-12-04 20:36:06 +07:00
parent fabe431bf8
commit 56a754cf63

View file

@ -34,7 +34,7 @@ class UserInfoFromIP extends Action
$ids = [];
while ($row = $stmt->fetch()) {
if (1 === $row['poster_id']) {
if ($row['poster_id'] < 1) {
$result[] = $row['poster'];
} elseif (empty($ids[$row['poster_id']])) {
$result[] = $row['poster_id'];