Skip to content

Commit

Permalink
Dev: Small issue with unset templates
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Jul 30, 2018
1 parent 7a5af85 commit f56afbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -1301,7 +1301,7 @@ public function setJavascriptVar($iSurveyId = '')
"confirm_ok" => gT('OK'),
],
]; // To add more easily some lang string here
$aLSJavascriptVar['showpopup'] = $this->oTemplate->showpopups;
$aLSJavascriptVar['showpopup'] = $this->oTemplate != null ? $this->oTemplate->showpopups : false;
$aLSJavascriptVar['startPopups'] = new stdClass;
$aLSJavascriptVar['debugMode'] = Yii::app()->getConfig('debug');
$sLSJavascriptVar = "LSvar=".json_encode($aLSJavascriptVar).';';
Expand Down

0 comments on commit f56afbd

Please sign in to comment.