File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 93
93
exit ();
94
94
}
95
95
96
- // Delete the issue.
97
- $ DB ->delete_records ('customcert_issues ' , ['id ' => $ deleteissue , 'customcertid ' => $ customcert ->id ]);
98
96
// Always delete local copy.
99
97
if ($ candeletelocalcopy ) {
100
- $ issues = $ DB ->get_records ('customcert_issues ' , array ( 'id ' => $ deleteissue , 'customcertid ' => $ customcert ->id ) );
98
+ $ issues = $ DB ->get_records ('customcert_issues ' , [ 'id ' => $ deleteissue , 'customcertid ' => $ customcert ->id ] );
101
99
if (!empty ($ issues )) {
102
100
$ lf = new \mod_customcert \localfile (new \mod_customcert \template ($ template ));
103
101
array_map (fn ($ issue ) => $ lf ->deletePDF ($ issue ->userid ), $ issues );
106
104
107
105
if (!$ deletelocalcopy ) {
108
106
// Delete the issue.
109
- $ DB ->delete_records ('customcert_issues ' , array ( 'id ' => $ deleteissue , 'customcertid ' => $ customcert ->id ) );
107
+ $ DB ->delete_records ('customcert_issues ' , [ 'id ' => $ deleteissue , 'customcertid ' => $ customcert ->id ] );
110
108
}
111
109
112
110
// Redirect back to the manage templates page.
You can’t perform that action at this time.
0 commit comments