$escapeSmarty
);
}
+
// check if there are still any unevaluated tokens
- $greetingTokens = self::getTokens($tokenString);
+ $remainingTokens = self::getTokens($tokenString);
- // $greetingTokens not empty, there are hook tokens to replace
- if (!empty($greetingTokens) ) {
+ // contact related $greetingTokens not empty, there are customized or hook tokens to replace
+ if (!empty($remainingTokens['contact']) ) {
// Fill the return properties array
+ $greetingTokens = $remainingTokens['contact'];
reset($greetingTokens);
$greetingsReturnProperties = array();
while(list($key) = each($greetingTokens)) {