2
0
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:
Adam Zammit
2017-01-10 10:41:05 +11:00
parent 0c56dc78c0
commit 2b6ce2ae1b
2 changed files with 10 additions and 4 deletions

View File

@@ -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;
}
}