]> git.joonet.de Git - adminer.git/commitdiff
Typos
authorJakub Vrana <jakub@vrana.cz>
Thu, 27 May 2010 14:10:37 +0000 (16:10 +0200)
committerJakub Vrana <jakub@vrana.cz>
Thu, 27 May 2010 14:10:37 +0000 (16:10 +0200)
adminer/include/editing.inc.php
adminer/table.inc.php

index 70ac314d9d3e8813031436a8d8511bae36d3620d..1352dd89eb671834e5826bdbda8b70a67761fda4 100644 (file)
@@ -106,7 +106,7 @@ function referencable_primary($self) {
 function edit_type($key, $field, $collations, $foreign_keys = array()) {
        global $structured_types, $types, $unsigned, $inout, $on_actions;
        ?>
-<td><select name="<?php echo $key; ?>[type]" class="type" onfocus="lastType = selectValue(this);" onchange="editingTypeChange(this);"><?php echo optionlist((isset($types[$field["type"]]) ? array() : array($field["type"])) + $structured_types + ($foreign_keys ? array(lang('Foreign keys') => $foreign_keys) : array()), $field["type"]); ?></select>
+<td><select name="<?php echo $key; ?>[type]" class="type" onfocus="lastType = selectValue(this);" onchange="editingTypeChange(this);"><?php echo optionlist((!$field["type"] || isset($types[$field["type"]]) ? array() : array($field["type"])) + $structured_types + ($foreign_keys ? array(lang('Foreign keys') => $foreign_keys) : array()), $field["type"]); ?></select>
 <td><input name="<?php echo $key; ?>[length]" value="<?php echo h($field["length"]); ?>" size="3" onfocus="editingLengthFocus(this);"><td><?php
        echo "<select name='$key" . "[collation]'" . (ereg('(char|text|enum|set)$', $field["type"]) ? "" : " class='hidden'") . '><option value="">(' . lang('collation') . ')' . optionlist($collations, $field["collation"]) . '</select>';
        echo ($unsigned ? "<select name='$key" . "[unsigned]'" . (!$field["type"] || ereg('(int|float|double|decimal)$', $field["type"]) ? "" : " class='hidden'") . '><option>' . optionlist($unsigned, $field["unsigned"]) . '</select>' : '');
index 30a2f234221b9e83e5fbbcf6ff2e42695fe64fd4..50ab0cd044f30c9ab8b0e2d00dd26b67f369a737 100644 (file)
@@ -20,7 +20,7 @@ if ($fields) {
        }
        echo "</table>\n";
        
-       if (is_view($table_status)) {
+       if (!is_view($table_status)) {
                echo "<h3>" . lang('Indexes') . "</h3>\n";
                $indexes = indexes($TABLE);
                if ($indexes) {