aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-01 17:17:27 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-01 17:17:27 +0000
commit971a2fec754f6be795f9868ac91280f4a7d7c79e (patch)
tree9844524ff3422db6de9a73a37fee89743655b31e
parent4e08e618308d7dedfd3983d015950c81e7403e29 (diff)
downloadelgg-971a2fec754f6be795f9868ac91280f4a7d7c79e.tar.gz
elgg-971a2fec754f6be795f9868ac91280f4a7d7c79e.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* End of day... git-svn-id: https://code.elgg.org/elgg/trunk@324 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/export.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/engine/lib/export.php b/engine/lib/export.php
index 024f25a63..8e3376f32 100644
--- a/engine/lib/export.php
+++ b/engine/lib/export.php
@@ -220,10 +220,11 @@
$uuid = sanitise_string($uuid);
$entities = get_entities_from_metadata("import_uuid", $uuid);
- if ((!$entities) || (count($entities)!=1))
- throw new InvalidParameterException("Unexpected number of entities tagged with $uuid, previous import failed?");
-
- return $entities[0];
+
+ if ($entities)
+ return $entities[0];
+
+ return false;
}
/**