]> git.mjollnir.org Git - moodle.git/commitdiff
Allow showing error message when insert_record fails.
authorethem <ethem>
Tue, 16 May 2006 15:02:52 +0000 (15:02 +0000)
committerethem <ethem>
Tue, 16 May 2006 15:02:52 +0000 (15:02 +0000)
merged from 16_stable.

enrol/authorize/locallib.php

index 3b08167e268af7c924e10de3ac7396c726cc1734..91a0f88e91f9a407d343bfe2b1c38f7539c175c5 100644 (file)
@@ -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'),