From 1e7e0ed272a3fa984241314dc01a871d3fa03c35 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 22 Nov 2012 16:07:25 +0100 Subject: sqlbox: Remove unneeded brackets in class initialization --- sqlbox/index.php | 2 +- sqlbox/view.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlbox/index.php b/sqlbox/index.php index 591e3fe..eceb6b7 100644 --- a/sqlbox/index.php +++ b/sqlbox/index.php @@ -52,7 +52,7 @@ if (! $sqlboxs = get_all_instances_in_course('sqlbox', $course)) { notice(get_string('nosqlboxs', 'sqlbox'), new moodle_url('/course/view.php', array('id' => $course->id))); } -$table = new html_table(); +$table = new html_table; if ($course->format == 'weeks') { $table->head = array(get_string('week'), get_string('name')); $table->align = array('center', 'left'); diff --git a/sqlbox/view.php b/sqlbox/view.php index 2169ab0..5f0e4a0 100644 --- a/sqlbox/view.php +++ b/sqlbox/view.php @@ -88,7 +88,7 @@ if (isset($data->sqlbox_query)) { if (!$result) error("Query failed: ".pg_last_error($db)); - $table = new html_table(); + $table = new html_table; $n = pg_num_fields($result); for ($i = 0; $i < $n; $i++) $table->head[] = pg_field_name($result, $i); -- cgit