From 971a2fec754f6be795f9868ac91280f4a7d7c79e Mon Sep 17 00:00:00 2001 From: icewing Date: Tue, 1 Apr 2008 17:17:27 +0000 Subject: Marcus Povey * End of day... git-svn-id: https://code.elgg.org/elgg/trunk@324 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/export.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'engine') 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; } /** -- cgit v1.2.3