Removed unnecessary conditional check in edit_form.php

This commit is contained in:
Mark Nelson 2013-07-24 17:25:57 +08:00
parent 758ed0e928
commit 345c58e840

View file

@ -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.