Add new columns (todo impl)

This commit is contained in:
ruan 2017-05-08 15:21:23 +02:00
parent 401d7a161a
commit bde64a2058
No known key found for this signature in database
GPG Key ID: 062534EE618F498C

View File

@ -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";
}