aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php7
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.");
}
}