From: Steve Clay Date: Sun, 2 Jun 2013 02:13:08 +0000 (-0400) Subject: Refs #5538: Adds missing attributes to ElggUser and ElggCoreUserTest (by Paweł Sroka) X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=50dee6fe09a1f600089b1684f6f8f91599c365a1;p=lorea%2Felgg.git Refs #5538: Adds missing attributes to ElggUser and ElggCoreUserTest (by Paweł Sroka) --- diff --git a/engine/classes/ElggUser.php b/engine/classes/ElggUser.php index 6d9f10b57..b2cada8ef 100644 --- a/engine/classes/ElggUser.php +++ b/engine/classes/ElggUser.php @@ -40,6 +40,9 @@ class ElggUser extends ElggEntity $this->attributes['code'] = NULL; $this->attributes['banned'] = "no"; $this->attributes['admin'] = 'no'; + $this->attributes['prev_last_action'] = NULL; + $this->attributes['last_login'] = NULL; + $this->attributes['prev_last_login'] = NULL; $this->attributes['tables_split'] = 2; } diff --git a/engine/tests/objects/users.php b/engine/tests/objects/users.php index a3573acb6..dc9129326 100644 --- a/engine/tests/objects/users.php +++ b/engine/tests/objects/users.php @@ -65,6 +65,9 @@ class ElggCoreUserTest extends ElggCoreUnitTest { $attributes['code'] = NULL; $attributes['banned'] = 'no'; $attributes['admin'] = 'no'; + $attributes['prev_last_action'] = NULL; + $attributes['last_login'] = NULL; + $attributes['prev_last_login'] = NULL; ksort($attributes); $entity_attributes = $this->user->expose_attributes();