aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-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;
}
/**