Fixed use of wrong BanInfo constructor.

This commit is contained in:
flash 2024-02-08 15:18:57 +00:00
parent b0e9f4a167
commit 2278ecab38

View file

@ -147,7 +147,7 @@ class Bans {
$stmt->execute();
$result = $stmt->getResult();
return $result->next() ? new BanInfo($result) : null;
return $result->next() ? BanInfo::fromResult($result) : null;
}
public function createBan(