X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ftemplate-functions.php;h=36212e608afb78e07ef483e34214809f9e596ff6;hp=d29104fd9517c65f6927ae6d1f5d079f75307a5c;hb=0e104a9282a1cdc7d769bbccb03bd3462aa8f4e0;hpb=97702d59eb179b54690f9ccc18df66cd981ab0df 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!