diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-22 16:07:25 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-22 16:07:25 +0100 |
commit | 1e7e0ed272a3fa984241314dc01a871d3fa03c35 (patch) | |
tree | 686c8bb5a20ad13844e615e3eac784fd5a28302a | |
parent | acd0d17d577081af76709a440e368f41bfb28b48 (diff) | |
download | sqltutor-plugin-1e7e0ed272a3fa984241314dc01a871d3fa03c35.tar.gz sqltutor-plugin-1e7e0ed272a3fa984241314dc01a871d3fa03c35.tar.bz2 sqltutor-plugin-1e7e0ed272a3fa984241314dc01a871d3fa03c35.zip |
sqlbox: Remove unneeded brackets in class initialization
-rw-r--r-- | sqlbox/index.php | 2 | ||||
-rw-r--r-- | 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); |