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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user