mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
#64: Use more portable SQL in run_query
This commit is contained in:
parent
597b2b2043
commit
ac2447040f
@ -186,7 +186,7 @@ class Page {
|
||||
$where = $this->where_append($this->name === "kicks" ? "" : $this->settings->active_query); // Not user input
|
||||
$where .= "(uuid <> '#offline#' AND uuid IS NOT NULL)";
|
||||
|
||||
$st = $this->conn->prepare("SELECT $select FROM $table $where GROUP BY $table.id ORDER BY time DESC LIMIT :limit OFFSET :offset");
|
||||
$st = $this->conn->prepare("SELECT $select FROM $table $where ORDER BY time DESC LIMIT :limit OFFSET :offset");
|
||||
$st->bindParam(':offset', $offset, PDO::PARAM_INT);
|
||||
$st->bindParam(':limit', $limit, PDO::PARAM_INT);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user