From 00ed0f85bc5f29294840481da83ba870c81d9688 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 22 Feb 2010 17:40:42 +0000 Subject: Fixes #1528: Correctly throwing exceptions for objects, groups, and users. git-svn-id: http://code.elgg.org/elgg/trunk@3968 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib/users.php') diff --git a/engine/lib/users.php b/engine/lib/users.php index 1d08bd133..549dd3595 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -90,7 +90,7 @@ class ElggUser extends ElggEntity // We assume if we have got this far, $guid is an int else if (is_numeric($guid)) { if (!$this->load($guid)) { - IOException(sprintf(elgg_echo('IOException:FailedToLoadGUID'), get_class(), $guid)); + throw new IOException(sprintf(elgg_echo('IOException:FailedToLoadGUID'), get_class(), $guid)); } } -- cgit v1.2.3