Skip to content

Commit

Permalink
lack name of the sender in the field from when using JSON-PRC
Browse files Browse the repository at this point in the history
  • Loading branch information
sieutruc committed May 21, 2015
1 parent e9fa25c commit 02ef42c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/helpers/admin/token_helper.php
Expand Up @@ -165,6 +165,8 @@ function emailTokens($iSurveyID,$aResultTokens,$sType)
$from = $fieldsarray["{ADMINEMAIL}"];
if($from == '')
$from = Yii::app()->getConfig('siteadminemail');
elseif (!empty($fieldsarray["{ADMINNAME}"]))
$from = $fieldsarray["{ADMINNAME}"]." <".$from.">";

foreach ($attributes as $attributefield)
{
Expand Down

0 comments on commit 02ef42c

Please sign in to comment.