if $var is an array (like http://www.phpdocx.com/archives/1942) there is an problem with the log. Error Message:
The array could not be converted to string...
public function addTemplateVariable($var, $value = '', $settings = '')
{
$template = CreateTemplate::getInstance();
self::$log->info(
[u][b] 'Assign and replace text variable ' . $var . ' in template.'[/b][/u]
);
$template->replaceVariable($var, $value, $settings);
}