diff options
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r-- | engine/lib/sites.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php index 9f2ae442f..2d9f04f1c 100644 --- a/engine/lib/sites.php +++ b/engine/lib/sites.php @@ -51,7 +51,8 @@ // Is $guid is a DB row - either a entity row, or a site table row. if ($guid instanceof stdClass) { // Load the rest - $this->load($guid->guid); + if (!$this->load($guid->guid)) + throw new IOException("Failed to load new ElggSite from GUID:$guid->guid"); } // Is $guid is an ElggSite? Use a copy constructor |