aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/export.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-29 17:18:38 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-29 17:18:38 +0000
commitda83aa0dd9d4fcbb81a9c2f27cb43587f9225279 (patch)
treee292d619de88bd1d4ce1dbeea6b69f4b8db9eb5c /engine/lib/export.php
parent6441a960edc875a0c33fa8bbd735fd1faebaa552 (diff)
downloadelgg-da83aa0dd9d4fcbb81a9c2f27cb43587f9225279.tar.gz
elgg-da83aa0dd9d4fcbb81a9c2f27cb43587f9225279.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* No such entity error thrown if invalid guid given for export git-svn-id: https://code.elgg.org/elgg/trunk@292 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/export.php')
-rw-r--r--engine/lib/export.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/export.php b/engine/lib/export.php
index 5937a71bc..61cee79ba 100644
--- a/engine/lib/export.php
+++ b/engine/lib/export.php
@@ -46,7 +46,7 @@
$to_be_serialised = trigger_plugin_hook("export", "all", array("guid" => $guid), $to_be_serialised);
// Sanity check
- if (!is_array($to_be_serialised)) throw new ExportException("There was a problem during the serialisation of GUID:$guid");
+ if ((!is_array($to_be_serialised)) || (count($to_be_serialised)==0)) throw new ExportException("No such entity GUID:$guid");
// Now serialise the result to XML
$wrapper = new stdClass;