aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-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 a63092148..ca68c0fed 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -732,7 +732,6 @@
* This function returns an ElggUser from a given GUID.
* @param int $guid The GUID
* @return ElggUser|false
- * @throws InvalidParameterException if $GUID exists but is not an ElggUser.
*/
function get_user($guid)
{
@@ -740,7 +739,8 @@
$result = get_entity($guid);
if ((!empty($result)) && (!($result instanceof ElggUser)))
- throw new InvalidClassException(sprintf(elgg_echo('InvalidClassException:NotValidElggStar'), $guid, 'ElggUser'));
+ //throw new InvalidClassException(sprintf(elgg_echo('InvalidClassException:NotValidElggStar'), $guid, 'ElggUser'));
+ return false;
if (!empty($result))
return $result;