diff options
-rw-r--r-- | sqlbox/view.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sqlbox/view.php b/sqlbox/view.php index 123c21f..426e1d9 100644 --- a/sqlbox/view.php +++ b/sqlbox/view.php @@ -78,10 +78,7 @@ echo $OUTPUT->heading('Yay! It works!'); $form = new mod_sqlbox_form(NULL, array()); $form->display(); -$data = $form->get_data(); - -if ($data) - print_r($data); +print_r($form->get_data()); // Finish the page echo $OUTPUT->footer(); |