]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #5538: Adds missing attributes to ElggUser and ElggCoreUserTest (by Paweł Sroka)
authorSteve Clay <steve@mrclay.org>
Sun, 2 Jun 2013 02:13:08 +0000 (22:13 -0400)
committerSteve Clay <steve@mrclay.org>
Sun, 2 Jun 2013 02:13:08 +0000 (22:13 -0400)
engine/classes/ElggUser.php
engine/tests/objects/users.php

index 6d9f10b576a8747cfbde531358caf68fc9c1d956..b2cada8ef471cd24b147b4dad1ed6855d35e7aa7 100644 (file)
@@ -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;
        }
 
index a3573acb6994961ad9c99d66fabfb114e4727e32..dc91293268684d00f23a90983f2bbfae337eb769 100644 (file)
@@ -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();