diff options
author | cash <cash.costello@gmail.com> | 2011-11-18 17:15:02 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-18 17:15:02 -0500 |
commit | 597641b401a73d6d5cd7f35f052095105bd2fb22 (patch) | |
tree | d79f1c97dd2a0e2c5ea2c1d33ee664be6fc75589 /engine/lib/users.php | |
parent | a77a8f5c4a1e76aa9beb18a2b3c938b3082fa4a8 (diff) | |
download | elgg-597641b401a73d6d5cd7f35f052095105bd2fb22.tar.gz elgg-597641b401a73d6d5cd7f35f052095105bd2fb22.tar.bz2 |
Fixes #4112 get_user_by_username() returns false if no user
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r-- | engine/lib/users.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index 9cb8ddfa7..29fa4db2f 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -565,6 +565,8 @@ function get_user_by_username($username) { $entity = get_data_row($query, 'entity_row_to_elggstar'); if ($entity) { $USERNAME_TO_GUID_MAP_CACHE[$username] = $entity->guid; + } else { + $entity = false; } return $entity; |