aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-16 14:45:16 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-16 14:45:16 +0000
commitcdabdd5951626da5b1bd184dca50716248f32c31 (patch)
tree045225c7beb2d007fa25b2b431b9d0e64f3eda13 /engine/lib/users.php
parent2216b3352edd95a4df2745996e7d3c741efc3284 (diff)
downloadelgg-cdabdd5951626da5b1bd184dca50716248f32c31.tar.gz
elgg-cdabdd5951626da5b1bd184dca50716248f32c31.tar.bz2
Generic entity view system
git-svn-id: https://code.elgg.org/elgg/trunk@474 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 166225b9e..5669da06d 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -491,10 +491,10 @@
if (!empty($guid)) // Fixes "Exception thrown without stack frame" when db_select fails
$result = get_entity($guid);
- if (($result) && (!($result instanceof ElggUser)))
+ if ((!empty($result)) && (!($result instanceof ElggUser)))
throw new InvalidParameterException("GUID:$guid is not an ElggUser");
- if ($result)
+ if (!empty($result))
return $result;
return false;