mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Add new columns (todo impl)
This commit is contained in:
parent
401d7a161a
commit
bde64a2058
@ -148,7 +148,7 @@ class Page {
|
||||
// Under certain versions of PHP, there is a bug with BIT columns.
|
||||
// An empty string is returned no matter what the value is.
|
||||
// Workaround: cast to unsigned.
|
||||
$selection = "id,uuid,reason,banned_by_name,banned_by_uuid,time,until,CAST(active AS UNSIGNED) AS active";
|
||||
$selection = "id,uuid,reason,banned_by_name,banned_by_uuid,time,until,server_origin,server_scope,CAST(active AS UNSIGNED) AS active";
|
||||
if ($table === $this->settings->table['warnings']) {
|
||||
$selection .= ",CAST(warned AS UNSIGNED) AS warned";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user