From 345c58e84071de63bfe9d0ad55d8423b480149d7 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Wed, 24 Jul 2013 17:25:57 +0800 Subject: [PATCH] Removed unnecessary conditional check in edit_form.php --- edit_form.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/edit_form.php b/edit_form.php index 5ea4fa0..c7ec20e 100644 --- a/edit_form.php +++ b/edit_form.php @@ -213,12 +213,10 @@ class mod_customcert_edit_form extends moodleform { // Create a table to display these elements. $table = new html_table(); $table->head = array(get_string('name', 'customcert'), get_string('type', 'customcert'), '', ''); + $table->align = array('left', 'left', 'center', 'center'); // If we have more than one element then we can change the order, so add extra column for the up and down arrow. if ($numelements > 1) { $table->head[] = ''; - } - $table->align = array('left', 'left', 'center', 'center'); - if ($numelements > 1) { $table->align[] = 'center'; } // Loop through and add the elements to the table.