You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CAT_MH_CHA.php
+32-3Lines changed: 32 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -365,7 +365,13 @@ public function makeInterview() {
365
365
echo("Cannot create a new interview. Please have the REDCap administrator configure the application and organization IDs for CAT-MH use.");
366
366
return;
367
367
}
368
-
$args['subjectID'] = $sid;
368
+
369
+
if ($valid_sid = $this->validateSubjectId($sid)) {
370
+
$args['subjectID'] = $valid_sid;
371
+
} else {
372
+
echo("Cannot create a new interview due to invalid subjectID! Please have the REDCap administrator configure the application and organization IDs for CAT-MH use.");
0 commit comments