Skip to content
Snippets Groups Projects
Commit 999dc8d9 authored by Demian Katz's avatar Demian Katz
Browse files

Added isset() check to account for case where unexpected record ID is returned.

parent c5ab1524
No related merge requests found
...@@ -148,7 +148,13 @@ class Loader ...@@ -148,7 +148,13 @@ class Loader
$records = $this->loadBatchForSource(array_keys($details), $source); $records = $this->loadBatchForSource(array_keys($details), $source);
foreach ($records as $current) { foreach ($records as $current) {
$id = $current->getUniqueId(); $id = $current->getUniqueId();
$retVal[$details[$id]] = $current; // In theory, we should be able to assume that $details[$id] is
// set... but in practice, we can't make that assumption. In some
// cases, Summon IDs will change, and requests for an old ID value
// will return a record with a different ID.
if (isset($details[$id])) {
$retVal[$details[$id]] = $current;
}
} }
} }
......
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