aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-20 16:16:34 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-20 16:16:34 +0000
commitbe1e1e8d5d726eccd964b404234423bd0119e321 (patch)
tree09aa8325a2c5aa2838cd0d5f30e6518909800fa4 /engine/lib/sites.php
parente494c6fea5d9eb5714849c21d5452c6179f4373d (diff)
downloadelgg-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/sites.php')
-rw-r--r--engine/lib/sites.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index dcaa05b14..cf815d885 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -78,9 +78,12 @@
}
// We assume if we have got this far, $guid is an int
- else {
+ else if (is_numeric($guid)) {
if (!$this->load($guid)) throw new IOException("Could not create a new ElggSite object from GUID:$guid");
}
+
+ else
+ throw new IOException("Unrecognised value passed to constuctor.");
}
}