]> git.mjollnir.org Git - moodle.git/commitdiff
fixed notice (and bug) introduced by MDL-19787
authorstronk7 <stronk7>
Mon, 7 Sep 2009 08:05:01 +0000 (08:05 +0000)
committerstronk7 <stronk7>
Mon, 7 Sep 2009 08:05:01 +0000 (08:05 +0000)
admin/xmldb/actions/edit_field/edit_field.class.php

index 1711946239e8ba774506684dda7405da78bb22bb..9edc53717b5e7cf7f3426c1776a18990eca11bbe 100644 (file)
@@ -166,9 +166,9 @@ class edit_field extends XMLDBAction {
         $o.= '      <tr valign="top"><td><label for="menunotnull" accesskey="n">Not Null:</label></td>';
         $o.= '        <td colspan="2">' . $OUTPUT->select($select) . '</td></tr>';
     /// xmldb_field Sequence
+        $sequenceoptions = array (0 => $this->str['no'], 1 => 'auto-numbered');
         $select = html_select::make($sequenceoptions, 'sequence', $field->getSequence(), false);
         $select->nothingvalue = '';
-        $sequenceoptions = array (0 => $this->str['no'], 1 => 'auto-numbered');
         $o.= '      <tr valign="top"><td><label for="menusequence" accesskey="s">Sequence:</label></td>';
         $o.= '        <td colspan="2">' . $OUTPUT->select($select) . '</td></tr>';
     /// xmldb_field Default