Skip to content

Commit

Permalink
Fixed issue #11527: {QUESTION_VALID_MESSAGE} placeholder gets populat…
Browse files Browse the repository at this point in the history
…ed with HTML even if no warning exists
  • Loading branch information
markusfluer committed Aug 24, 2016
1 parent 3d409aa commit d7aac39
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion application/helpers/qanda_helper.php
Expand Up @@ -408,7 +408,15 @@ function validation_message($ia,$show)
$class = (!$show)?' hide-tip':'';
$id = "vmsg_".$ia[0];
$message = $qinfo['validTip'];
$tip = doRender('/survey/question_help/help', array('message'=>$message, 'classes'=>$class, 'id'=>$id ), true);
if($message != "")
{
$tip = doRender('/survey/question_help/help', array('message'=>$message, 'classes'=>$class, 'id'=>$id ), true);
}
else
{
$tip = "";
}

$isValid = $qinfo['valid'];
return array($tip,$isValid);
}
Expand Down

0 comments on commit d7aac39

Please sign in to comment.