Skip to content

Commit

Permalink
Dev: replaced is_null by empty
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 21, 2017
1 parent 0ba6d96 commit 4946afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Template.php
Expand Up @@ -236,7 +236,7 @@ public static function getTemplateConfiguration($sTemplateName = null, $iSurveyI
// First we try to get a confifuration row from DB
if (!$bForceXML) {
// The name need to be filtred only for DB version. From TemplateEditor, the template is not installed.
$sTemplateName = (is_null($sTemplateName)) ? null : self::templateNameFilter($sTemplateName);
$sTemplateName = (empty($sTemplateName)) ? null : self::templateNameFilter($sTemplateName);
$oTemplateConfigurationModel = TemplateConfiguration::getInstance($sTemplateName, $iSurveyGroupId, $iSurveyId);
}

Expand Down

0 comments on commit 4946afb

Please sign in to comment.