2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Set default template if token specified but no equivalent token in queXS (i.e. when using limesurvey within queXS standalone)

This commit is contained in:
Adam Zammit
2013-05-08 10:09:38 +10:00
parent 0e9282f548
commit e0ee24a492

View File

@@ -58,7 +58,12 @@ function quexs_get_template($clienttoken)
WHERE q.questionnaire_id = c.questionnaire_id
AND c.token = '$clienttoken'";
return $db->GetOne($sql);
$tpl = $db->GetOne($sql);
if (empty($tpl))
return 'default';
else
return $tpl;
}
/**