Skip to content

Commit

Permalink
Fixed issue: PHP warning if cssframework is empty in config gile
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jul 28, 2016
1 parent 92b322a commit f13c6c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion application/helpers/replacements_helper.php
Expand Up @@ -199,7 +199,12 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
}
if( isset($oTemplate->config->engine->cssframework) && $oTemplate->config->engine->cssframework)
{
$surveyformat .= " ".$oTemplate->config->engine->cssframework."-engine ";
$aCssFramework = (array) $oTemplate->config->engine->cssframework;
if( ! empty($aCssFramework) )
{
$surveyformat .= " ".$oTemplate->config->engine->cssframework."-engine ";
}

}

if ((isset(Yii::app()->session['step']) && Yii::app()->session['step'] % 2) && $surveyformat!="allinone")
Expand Down

0 comments on commit f13c6c4

Please sign in to comment.