diff options
author | Marcin Łojewski <marcin.lojewski@mlojewski.me> | 2018-06-13 21:01:09 +0300 |
---|---|---|
committer | Marcin Łojewski <marcin.lojewski@mlojewski.me> | 2018-06-13 21:01:09 +0300 |
commit | a312ba8c4705be38b48328631ee2c0d2d3d40adb (patch) | |
tree | be6765220599eac5b20de745385bb0c5b376dfd4 /lib/Query | |
parent | b00f61193efc3cc8340585ca70fef84a571866d4 (diff) |
User active column
Diffstat (limited to 'lib/Query')
-rw-r--r-- | lib/Query/QueryProvider.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Query/QueryProvider.php b/lib/Query/QueryProvider.php index c1fdd52..742e784 100644 --- a/lib/Query/QueryProvider.php +++ b/lib/Query/QueryProvider.php @@ -65,6 +65,7 @@ class QueryProvider implements \ArrayAccess $gGID = $this->properties[DB::GROUP_GID_COLUMN]; $gName = $this->properties[DB::GROUP_NAME_COLUMN]; + $uActive = $this->properties[DB::USER_ACTIVE_COLUMN]; $uAvatar = $this->properties[DB::USER_AVATAR_COLUMN]; $uEmail = $this->properties[DB::USER_EMAIL_COLUMN]; $uHome = $this->properties[DB::USER_HOME_COLUMN]; @@ -90,6 +91,7 @@ class QueryProvider implements \ArrayAccess (empty($uName) ? "null" : $uName) . " AS name, " . (empty($uEmail) ? "null" : $uEmail) . " AS email, " . (empty($uHome) ? "null" : $uHome) . " AS home, " . + (empty($uActive) ? "true" : $uActive) . " AS active, " . (empty($uAvatar) ? "false" : $uAvatar) . " AS avatar"; $this->queries = [ |