diff options
Diffstat (limited to 'sqlbox/view.php')
-rw-r--r-- | sqlbox/view.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlbox/view.php b/sqlbox/view.php index 1f7cf41..eedca2b 100644 --- a/sqlbox/view.php +++ b/sqlbox/view.php @@ -81,8 +81,8 @@ $data = $form->get_data(); $correct = true; -echo $OUTPUT->heading('SQL Query: '.$data->sqlbox_query); if (isset($data->sqlbox_query)) { + echo $OUTPUT->heading('SQL Query: '.$data->sqlbox_query); $db = pg_connect("host=localhost dbname=sqlbox user=sqlbox password=foobar"); if (!$db) error("Failed to connect to sqlbox db"); |