summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sqlbox/index.php2
-rw-r--r--sqlbox/view.php2
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);