aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-07 18:07:58 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-07 18:07:58 +0000
commit9fa6b70a24617eeff1c01b8ea648b05dcde47708 (patch)
tree0774a949f8601964e2d5595dc4fed9923b7f3184
parent06bca872ab35a415621f75601c3c5fe8824ebb5d (diff)
downloadelgg-9fa6b70a24617eeff1c01b8ea648b05dcde47708.tar.gz
elgg-9fa6b70a24617eeff1c01b8ea648b05dcde47708.tar.bz2
Fix for ElggSites
git-svn-id: https://code.elgg.org/elgg/trunk@107 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/sites.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index 294ed9c8f..ff8235b34 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -45,7 +45,9 @@
else if (is_string($id))
$site = get_site_byurl($id); // Otherwise assume URL
else if ($id instanceof stdClass)
- $site = $id; // This is a db row, so serialise directly
+ $site = $id; // This is a db row, so serialise directly
+ else if ($id instanceof ElggSite)
+ $site = $id;
else
throw new InvalidParameterException("Unrecognised or unsupported type passed to ElggSite constructor.");