File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,9 @@ function display_error_page($message) {
53
53
}
54
54
55
55
// Fetch the certificate associated with the retrieved issue.
56
- // The certificate must be one of the recognized eCard types: 'Cognitive eCard' or 'Completion eCard'.
57
- $ certificate = $ DB ->get_record_sql ("
58
- SELECT * FROM {customcert}
59
- WHERE id = ? AND name IN ('Cognitive eCard', 'Completion eCard')
60
- " , [$ issue ->customcertid ]);
61
-
56
+ $ certificate = $ DB ->get_record ('customcert ' , ['id ' => $ issue ->customcertid ]);
62
57
if (!$ certificate ) {
63
- display_error_page ('The certificate type is not valid or does not exist. Please contact the site administrator for assistance. ' );
58
+ display_error_page ('The certificate does not exist. Please contact the site administrator for assistance. ' );
64
59
}
65
60
66
61
// Retrieve the corresponding template for the fetched certificate.
You can’t perform that action at this time.
0 commit comments