Allow showing error message when insert_record fails.
merged from 16_stable.
This commit is contained in:
@@ -309,8 +309,8 @@ function authorize_print_order_details($orderno)
|
||||
if (!empty($unenrol)) {
|
||||
unenrol_student($order->userid, $order->courseid);
|
||||
}
|
||||
redirect("index.php?order=$orderno");
|
||||
}
|
||||
redirect("index.php?order=$orderno");
|
||||
}
|
||||
else {
|
||||
$table->data[] = array(get_string('testmode', 'enrol_authorize'),
|
||||
|
||||
Reference in New Issue
Block a user