From: Roland Häder Date: Fri, 29 Jul 2011 06:31:20 +0000 (+0000) Subject: Fix for previous commit X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e104a9282a1cdc7d769bbccb03bd3462aa8f4e0;p=mailer.git Fix for previous commit --- diff --git a/inc/template-functions.php b/inc/template-functions.php index d29104fd95..36212e608a 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -650,12 +650,12 @@ function compileRawCode ($code, $simple = false, $constants = true, $full = true } // END - if // Take all string elements - if ((is_string($matches[4][$key])) && (!isset($matchesFound[$match])) && (!isset($matchesFound[$key.'_' . $matches[4][$key]]))) { + if ((is_string($matches[3][$key])) && (!isset($matchesFound[$match])) && (!isset($matchesFound[$key.'_' . $matches[3][$key]]))) { // Replace it in the code //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',match=' . $match); $newMatch = str_replace('[', "['", str_replace(']', "']", $match)); $code = str_replace($match, '".' . $newMatch . '."', $code); - $matchesFound[$key . '_' . $matches[4][$key]] = 1; + $matchesFound[$key . '_' . $matches[3][$key]] = 1; $matchesFound[$match] = true; } elseif (!isset($matchesFound[$match])) { // Not yet replaced!