FlexIndex: Fixed undefined index

This commit is contained in:
Matias Griese
2019-02-04 22:27:21 +02:00
parent 24e6b6c8f1
commit c713625a38

View File

@@ -510,7 +510,7 @@ class FlexIndex extends ObjectIndex implements FlexCollectionInterface, FlexInde
// Either way, update the entry. // Either way, update the entry.
$index[$key] = $entry; $index[$key] = $entry;
} else { } elseif (isset($index[$key])) {
// Remove object from the index. // Remove object from the index.
$removed[$key] = $index[$key]; $removed[$key] = $index[$key];
unset($index[$key]); unset($index[$key]);