diff --git a/classes/class.tx_caretakerinstance_Operation_MatchPredefinedVariable.php b/classes/class.tx_caretakerinstance_Operation_MatchPredefinedVariable.php index 796139e..b5bb8e7 100644 --- a/classes/class.tx_caretakerinstance_Operation_MatchPredefinedVariable.php +++ b/classes/class.tx_caretakerinstance_Operation_MatchPredefinedVariable.php @@ -106,14 +106,19 @@ protected function getValueForKeyPath(array $keyPath) switch ($key) { case 'GLOBALS': $value = $GLOBALS; - // decode TYPO3_CONF_VARS->EXT->extConf children if requested if ($keyPath[0] == 'TYPO3_CONF_VARS' && $keyPath[1] == 'EXT' && $keyPath[2] == 'extConf' && $keyPath[3]) { - $value = clone $GLOBALS; - $serializedValue = $value[$keyPath[0]][$keyPath[1]][$keyPath[2]][$keyPath[3]]; - $value[$keyPath[0]][$keyPath[1]][$keyPath[2]][$keyPath[3]] = unserialize($serializedValue); + $serializedValue = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$keyPath[3]]; + $value = array( + 'TYPO3_CONF_VARS' => array( + 'EXT' => array( + 'extConf' => array( + $keyPath[3] => unserialize($serializedValue), + ), + ), + ), + ); } - break; case '_POST':