]> git.mxchange.org Git - mailer.git/commitdiff
Fix for previous commit
authorRoland Häder <roland@mxchange.org>
Fri, 29 Jul 2011 06:31:20 +0000 (06:31 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 29 Jul 2011 06:31:20 +0000 (06:31 +0000)
inc/template-functions.php

index d29104fd9517c65f6927ae6d1f5d079f75307a5c..36212e608afb78e07ef483e34214809f9e596ff6 100644 (file)
@@ -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!