aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
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.");
}
}