mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-19 09:27:24 +01:00
?/bans: fix pagination - can now see all bans on all boards if > $config[mod][banlist_page]
This commit is contained in:
parent
84e4fa054f
commit
c0e22f972f
@ -175,7 +175,11 @@ class Bans {
|
||||
}
|
||||
|
||||
static public function count($board = false) {
|
||||
if (!$board) {
|
||||
$query = prepare("SELECT COUNT(*) FROM ``bans``");
|
||||
} else {
|
||||
$query = prepare("SELECT COUNT(*) FROM ``bans`` WHERE `board` = :board");
|
||||
}
|
||||
$query->bindValue(':board', $board);
|
||||
$query->execute() or error(db_error());
|
||||
return (int)$query->fetchColumn();
|
||||
|
Loading…
x
Reference in New Issue
Block a user