Skip to content

Commit

Permalink
Fixed issue #13609: {QUEXMLPDF} Placeholder in template for Save to P…
Browse files Browse the repository at this point in the history
…DF triggers error if shown on welcome page
  • Loading branch information
adamzammit committed Apr 23, 2018
1 parent bf3fd7a commit d598358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/replacements_helper.php
Expand Up @@ -230,7 +230,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
$iscompleted = $thissurvey['iscompleted'] = false;
}

if (isset($surveyid)) {
if (isset($surveyid) && isset($_SESSION['survey_'.$surveyid]['srid'])) {
$_quexmlpdf = CHtml::link(gT("Save as PDF"), array("/printanswers/view/surveyid/{$surveyid}/printableexport/quexmlpdf"), array('data-toggle'=>'tooltip', 'data-placement'=>'right', 'title'=>gT("Note: Print will not include items on this page")));
} else {
$_quexmlpdf = "";
Expand Down

0 comments on commit d598358

Please sign in to comment.