From ecd6f2180a5c2d846e15d2205f696f52bce9a575 Mon Sep 17 00:00:00 2001 From: icewing Date: Thu, 3 Apr 2008 10:16:19 +0000 Subject: Marcus Povey * Exception thrown if load fails git-svn-id: https://code.elgg.org/elgg/trunk@389 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/lib/users.php') diff --git a/engine/lib/users.php b/engine/lib/users.php index cc293c411..edf2974c1 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -54,7 +54,8 @@ // Is $guid is a DB row - either a entity row, or a user table row. if ($guid instanceof stdClass) { // Load the rest - $this->load($guid->guid); + if (!$this->load($guid->guid)) + throw new IOException("Failed to load new ElggUser from GUID:$guid->guid"); } // See if this is a username -- cgit v1.2.3