Commit 1aa9341a authored by Hugh Davenport's avatar Hugh Davenport
Browse files

Fix error log when importing from moodle via leap

Bug #789719

Before the data was imported, but there was an error log, and now
the data imports but with no error log.

Change-Id: If724d33dafc19bfe42721f6ff81b8a7dfd83b0ef
Signed-off-by: default avatarHugh Davenport <>
parent 73196860
......@@ -1072,6 +1072,9 @@ class PluginImportLeap extends PluginImport {
// TODO: entryid injection? Probably not worth worrying about
$matches = $this->xml->xpath("//a:feed/a:entry/a:id[.='$entryid']/..");
// TODO: there had better be only one...
if (empty($matches)) {
return null;
$entry = $matches[0];
if ($entry) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment