From c713625a38763e2183a0c7268f9d85f63dbec5dc Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Mon, 4 Feb 2019 22:27:21 +0200 Subject: [PATCH] FlexIndex: Fixed undefined index --- system/src/Grav/Framework/Flex/FlexIndex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Framework/Flex/FlexIndex.php b/system/src/Grav/Framework/Flex/FlexIndex.php index 92b1488ad..aea73e0d9 100644 --- a/system/src/Grav/Framework/Flex/FlexIndex.php +++ b/system/src/Grav/Framework/Flex/FlexIndex.php @@ -510,7 +510,7 @@ class FlexIndex extends ObjectIndex implements FlexCollectionInterface, FlexInde // Either way, update the entry. $index[$key] = $entry; - } else { + } elseif (isset($index[$key])) { // Remove object from the index. $removed[$key] = $index[$key]; unset($index[$key]);