diff --git a/core/class/interactQuery.class.php b/core/class/interactQuery.class.php index ae9c8c462f..6039d27c9b 100644 --- a/core/class/interactQuery.class.php +++ b/core/class/interactQuery.class.php @@ -830,7 +830,8 @@ public function executeAndReply($_parameters) { $cron->setSchedule(cron::convertDateToCron($executeDate)); $cron->save(); $replace['#valeur#'] = date('Y-m-d H:i:s', $executeDate); - $result = scenarioExpression::setTags(str_replace(array_keys($replace), $replace, $reply)); + $tmpReply = str_replace(array_keys($replace), $replace, $reply); + $result = scenarioExpression::setTags($tmpReply); return $result; } $replace['#valeur#'] = ''; @@ -869,7 +870,7 @@ public function executeAndReply($_parameters) { if (isset($options['tags'])) { $options['tags'] = arg2array($options['tags']); foreach ($options['tags'] as $key => $value) { - $tags['#' . trim(trim($key), '#') . '#'] = scenarioExpression::setTags(trim($value)); + $tags['#' . trim(trim($key), '#') . '#'] = scenarioExpression::setTags($value); } } $options['tags'] = array_merge($replace, $tags);