mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Default to selected mode of delivery if no token in queXS to determine mode of delivery
This commit is contained in:
@@ -109,7 +109,13 @@ function quexs_get_survey_mode($clienttoken)
|
||||
WHERE q.questionnaire_id = c.questionnaire_id
|
||||
AND c.token = '$clienttoken'";
|
||||
|
||||
return $db->GetOne($sql);
|
||||
$md = $db->GetOne($sql);
|
||||
|
||||
if (empty($md)) {
|
||||
return false;
|
||||
} else {
|
||||
return $md;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user