diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-20 16:16:34 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-20 16:16:34 +0000 |
commit | be1e1e8d5d726eccd964b404234423bd0119e321 (patch) | |
tree | 09aa8325a2c5aa2838cd0d5f30e6518909800fa4 /engine/lib/users.php | |
parent | e494c6fea5d9eb5714849c21d5452c6179f4373d (diff) | |
download | elgg-be1e1e8d5d726eccd964b404234423bd0119e321.tar.gz elgg-be1e1e8d5d726eccd964b404234423bd0119e321.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Fixed direct load by guid issue
git-svn-id: https://code.elgg.org/elgg/trunk@662 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r-- | engine/lib/users.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index dafd4945a..96881b1df 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -83,9 +83,12 @@ throw new InvalidParameterException("Passing a non-ElggUser to an ElggUser constructor!");
// We assume if we have got this far, $guid is an int
- else if (is_int($guid)) {
+ else if (is_numeric($guid)) {
if (!$this->load($guid)) throw new IOException("Could not create a new ElggUser user from GUID:$guid");
- }
+ } + + else + throw new IOException("Unrecognised value passed to constuctor.");
}
}
|